InputEventKey
Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object Input event type for keyboard events.
Description
echo events.
Tutorials
- Using InputEvent
Properties
Methods
Property Descriptions
- bool echo
true, the key was already pressed before this event. It means the user is holding the key down.
- int physical_scancode
KeyList constants. Represent the physical location of a key on the 101/102-key US QWERTY keyboard.
InputEventKey, useOS.get_scancode_string(event.physical_scancode)whereeventis theInputEventKey.
- bool pressed
true, the key’s state is pressed. Iffalse, the key’s state is released.
- int scancode
KeyList constants. Represent key in the current keyboard layout.
InputEventKey, useOS.get_scancode_string(event.scancode)whereeventis theInputEventKey.
- int unicode
OS.set_ime_active for more information.
Method Descriptions
- int get_physical_scancode_with_modifiers ( ) const
ShiftorAlt. See also InputEventWithModifiers.InputEventKeywith modifiers, useOS.get_scancode_string(event.get_physical_scancode_with_modifiers())whereeventis theInputEventKey.
- int get_scancode_with_modifiers ( ) const
ShiftorAlt. See also InputEventWithModifiers.InputEventKeywith modifiers, useOS.get_scancode_string(event.get_scancode_with_modifiers())whereeventis theInputEventKey.
