12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- .. 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<class_inputeventwithmodifiers>` **<** :ref:`InputEvent<class_inputevent>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Input event type for keyboard events.
- Member Functions
- ----------------
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_scancode<class_InputEventKey_get_scancode>` **(** **)** const |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_scancode_with_modifiers<class_InputEventKey_get_scancode_with_modifiers>` **(** **)** const |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_unicode<class_InputEventKey_get_unicode>` **(** **)** const |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_echo<class_InputEventKey_set_echo>` **(** :ref:`bool<class_bool>` echo **)** |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_pressed<class_InputEventKey_set_pressed>` **(** :ref:`bool<class_bool>` pressed **)** |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_scancode<class_InputEventKey_set_scancode>` **(** :ref:`int<class_int>` scancode **)** |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_unicode<class_InputEventKey_set_unicode>` **(** :ref:`int<class_int>` unicode **)** |
- +------------------------+--------------------------------------------------------------------------------------------------------+
- Member Variables
- ----------------
- - :ref:`int<class_int>` **echo** - Echo state of the key, i.e. whether it's a repeat event or not.
- - :ref:`bool<class_bool>` **pressed** - Pressed state of the key.
- - :ref:`int<class_int>` **scancode** - Scancode of the key, one of the KEY_* constants in [@Global Scope].
- - :ref:`int<class_int>` **unicode** - Unicode identifier of the key (when relevant).
- Member Function Description
- ---------------------------
- .. _class_InputEventKey_get_scancode:
- - :ref:`int<class_int>` **get_scancode** **(** **)** const
- .. _class_InputEventKey_get_scancode_with_modifiers:
- - :ref:`int<class_int>` **get_scancode_with_modifiers** **(** **)** const
- .. _class_InputEventKey_get_unicode:
- - :ref:`int<class_int>` **get_unicode** **(** **)** const
- .. _class_InputEventKey_set_echo:
- - void **set_echo** **(** :ref:`bool<class_bool>` echo **)**
- .. _class_InputEventKey_set_pressed:
- - void **set_pressed** **(** :ref:`bool<class_bool>` pressed **)**
- .. _class_InputEventKey_set_scancode:
- - void **set_scancode** **(** :ref:`int<class_int>` scancode **)**
- .. _class_InputEventKey_set_unicode:
- - void **set_unicode** **(** :ref:`int<class_int>` unicode **)**
|