class_inputeventkey.rst 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_InputEventKey:
  4. InputEventKey
  5. =============
  6. **Inherits:** :ref:`InputEventWithModifiers<class_inputeventwithmodifiers>` **<** :ref:`InputEvent<class_inputevent>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Input event type for keyboard events.
  11. Member Functions
  12. ----------------
  13. +------------------------+--------------------------------------------------------------------------------------------------------+
  14. | :ref:`int<class_int>` | :ref:`get_scancode<class_InputEventKey_get_scancode>` **(** **)** const |
  15. +------------------------+--------------------------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`get_scancode_with_modifiers<class_InputEventKey_get_scancode_with_modifiers>` **(** **)** const |
  17. +------------------------+--------------------------------------------------------------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`get_unicode<class_InputEventKey_get_unicode>` **(** **)** const |
  19. +------------------------+--------------------------------------------------------------------------------------------------------+
  20. | void | :ref:`set_echo<class_InputEventKey_set_echo>` **(** :ref:`bool<class_bool>` echo **)** |
  21. +------------------------+--------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_pressed<class_InputEventKey_set_pressed>` **(** :ref:`bool<class_bool>` pressed **)** |
  23. +------------------------+--------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_scancode<class_InputEventKey_set_scancode>` **(** :ref:`int<class_int>` scancode **)** |
  25. +------------------------+--------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_unicode<class_InputEventKey_set_unicode>` **(** :ref:`int<class_int>` unicode **)** |
  27. +------------------------+--------------------------------------------------------------------------------------------------------+
  28. Member Variables
  29. ----------------
  30. - :ref:`int<class_int>` **echo** - Echo state of the key, i.e. whether it's a repeat event or not.
  31. - :ref:`bool<class_bool>` **pressed** - Pressed state of the key.
  32. - :ref:`int<class_int>` **scancode** - Scancode of the key, one of the KEY_* constants in [@Global Scope].
  33. - :ref:`int<class_int>` **unicode** - Unicode identifier of the key (when relevant).
  34. Member Function Description
  35. ---------------------------
  36. .. _class_InputEventKey_get_scancode:
  37. - :ref:`int<class_int>` **get_scancode** **(** **)** const
  38. .. _class_InputEventKey_get_scancode_with_modifiers:
  39. - :ref:`int<class_int>` **get_scancode_with_modifiers** **(** **)** const
  40. .. _class_InputEventKey_get_unicode:
  41. - :ref:`int<class_int>` **get_unicode** **(** **)** const
  42. .. _class_InputEventKey_set_echo:
  43. - void **set_echo** **(** :ref:`bool<class_bool>` echo **)**
  44. .. _class_InputEventKey_set_pressed:
  45. - void **set_pressed** **(** :ref:`bool<class_bool>` pressed **)**
  46. .. _class_InputEventKey_set_scancode:
  47. - void **set_scancode** **(** :ref:`int<class_int>` scancode **)**
  48. .. _class_InputEventKey_set_unicode:
  49. - void **set_unicode** **(** :ref:`int<class_int>` unicode **)**