.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_InputEventKey: InputEventKey ============= **Inherits:** :ref:`InputEventWithModifiers` **<** :ref:`InputEvent` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Input event type for keyboard events. Member Functions ---------------- +------------------------+--------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_scancode` **(** **)** const | +------------------------+--------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_scancode_with_modifiers` **(** **)** const | +------------------------+--------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_unicode` **(** **)** const | +------------------------+--------------------------------------------------------------------------------------------------------+ | void | :ref:`set_echo` **(** :ref:`bool` echo **)** | +------------------------+--------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pressed` **(** :ref:`bool` pressed **)** | +------------------------+--------------------------------------------------------------------------------------------------------+ | void | :ref:`set_scancode` **(** :ref:`int` scancode **)** | +------------------------+--------------------------------------------------------------------------------------------------------+ | void | :ref:`set_unicode` **(** :ref:`int` unicode **)** | +------------------------+--------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`bool` **echo** - Echo state of the key, i.e. whether it's a repeat event or not. - :ref:`bool` **pressed** - Pressed state of the key. - :ref:`int` **scancode** - Scancode of the key, one of the KEY_* constants in [@Global Scope]. - :ref:`int` **unicode** - Unicode identifier of the key (when relevant). Member Function Description --------------------------- .. _class_InputEventKey_get_scancode: - :ref:`int` **get_scancode** **(** **)** const .. _class_InputEventKey_get_scancode_with_modifiers: - :ref:`int` **get_scancode_with_modifiers** **(** **)** const .. _class_InputEventKey_get_unicode: - :ref:`int` **get_unicode** **(** **)** const .. _class_InputEventKey_set_echo: - void **set_echo** **(** :ref:`bool` echo **)** .. _class_InputEventKey_set_pressed: - void **set_pressed** **(** :ref:`bool` pressed **)** .. _class_InputEventKey_set_scancode: - void **set_scancode** **(** :ref:`int` scancode **)** .. _class_InputEventKey_set_unicode: - void **set_unicode** **(** :ref:`int` unicode **)**