class_inputeventkey.rst 3.7 KB

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