virtual void OnKey(unsigned controllerIndex, KeyCode keyCode, unsigned wcharCode, bool downFlag, KeyModifiers mods);
OnKey is called to notify application about a keyboard event.
Parameters |
Description |
unsigned controllerIndex |
The index of the physical keyboard controller. |
KeyCode keyCode |
The key code. |
unsigned wcharCode |
Unicode for typed character. |
bool downFlag |
Flag to indicate the key is pressed down. |
KeyModifiers mods |
The modifier key. |