getKeyState
Script::getKeyState
Returns the state of a keyboard key.
Declaration
InputState getKeyState(InputKeyboardKey key, WindowID windowID = NTSHENGN_WINDOW_UNKNOWN);
Parameters
Name |
Type |
Description |
---|---|---|
key |
The keyboard key to check the state of. |
|
windowID |
The window to check the key state on. By default, this window will be the main window. |
Returns
An InputState containing the state of the keyboard key.