class_inputeventkey.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_with_modifiers<class_InputEventKey_get_scancode_with_modifiers>` **(** **)** const |
  16. +------------------------+-------------------------------------------------------------------------------------------------------+
  17. Member Variables
  18. ----------------
  19. .. _class_InputEventKey_echo:
  20. - :ref:`bool<class_bool>` **echo** - If ``true`` the key was already pressed before this event. It means the user is holding the key down.
  21. .. _class_InputEventKey_pressed:
  22. - :ref:`bool<class_bool>` **pressed** - If ``true`` the key's state is pressed. If ``false`` the key's state is released.
  23. .. _class_InputEventKey_scancode:
  24. - :ref:`int<class_int>` **scancode** - Key scancode, one of the ``KEY_*`` constants in @global Scope.
  25. .. _class_InputEventKey_unicode:
  26. - :ref:`int<class_int>` **unicode** - Key unicode identifier when relevant.
  27. Description
  28. -----------
  29. Stores key presses on the keyboard. Supports key presses, key releases and :ref:`echo<class_InputEventKey_echo>` events.
  30. Member Function Description
  31. ---------------------------
  32. .. _class_InputEventKey_get_scancode_with_modifiers:
  33. - :ref:`int<class_int>` **get_scancode_with_modifiers** **(** **)** const