InputEventKey
Input event type for keyboard events.
Stores key presses on the keyboard. Supports key presses, key releases and events.
Tutorials
Methods
get_scancode_with_modifiers ( ) const |
- pressed
Default | false |
Setter | set_pressed(value) |
Getter | is_pressed() |
If , the key’s state is pressed. If false
, the key’s state is released.
- int scancode
The key scancode, which corresponds to one of the constants.
- int unicode
Default | |
Setter | set_unicode(value) |
Getter | get_unicode() |
The key Unicode identifier (when relevant). Unicode identifiers for the composite characters and complex scripts may not be available unless IME input mode is active. See for more information.
Method Descriptions
Returns the scancode combined with modifier keys such as Shift
or Alt
. See also InputEventWithModifiers.