InputEventKey

Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object Input event type for keyboard events.

Description

echo events.

Tutorials

  • 使用 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, use OS.get_scancode_string(event.physical_scancode) where event is the InputEventKey.

  • bool pressed true, the key’s state is pressed. If false, the key’s state is released.

  • int scancode KeyList constants. Represent key in the current keyboard layout. InputEventKey, use OS.get_scancode_string(event.scancode) where event is the InputEventKey.

  • int unicode OS.set_ime_active for more information.

    Method Descriptions

  • int get_physical_scancode_with_modifiers ( ) const Shift or Alt. See also InputEventWithModifiers. InputEventKey with modifiers, use OS.get_scancode_string(event.get_physical_scancode_with_modifiers()) where event is the InputEventKey.

  • int get_scancode_with_modifiers ( ) const Shift or Alt. See also InputEventWithModifiers. InputEventKey with modifiers, use OS.get_scancode_string(event.get_scancode_with_modifiers()) where event is the InputEventKey.