getInputState()
Returns the current input state.
Synopsis
mapping getInputState();
Parameter
Parameter | Description |
---|---|
- | - |
Return value
Mapping with the current input states.
Error
-
Description
The function returns a mapping containing the input states. The mapping contains following keys:
- modifiersAsString (string) - ”ShiftModifier”,”ControlModifier”,”AltModifier”, “MetaModifier”, as string separated with “|” if multiple states apply.
- modifiers (unsigned) - Keyboard modifier, as OR combination of the following KEY_ CTRL constant values KEY_SHIFT, KEY_CONTROL, KEY_ALT, KEY_META
- buttonsAsString (string) - “LeftButton”, “RightButton”, “MiddleButton” as string separated with “|” if multiple states apply.
- buttons (unsigned) - The button key represents a combination of MOUSE_LEFT, MOUSE_RIGHT, MOUSE_MIDDLE as OR combination.
Assignment
-
Availability
UI