class_inputeventwithmodifiers.rst 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the InputEventWithModifiers.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_InputEventWithModifiers:
  5. InputEventWithModifiers
  6. =======================
  7. **Inherits:** :ref:`InputEvent<class_inputevent>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`InputEventKey<class_inputeventkey>`, :ref:`InputEventMouse<class_inputeventmouse>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Base class for keys events with modifiers.
  13. Member Functions
  14. ----------------
  15. +--------------------------+------------------------------------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`get_alt<class_InputEventWithModifiers_get_alt>` **(** **)** const |
  17. +--------------------------+------------------------------------------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`get_command<class_InputEventWithModifiers_get_command>` **(** **)** const |
  19. +--------------------------+------------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`get_control<class_InputEventWithModifiers_get_control>` **(** **)** const |
  21. +--------------------------+------------------------------------------------------------------------------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`get_metakey<class_InputEventWithModifiers_get_metakey>` **(** **)** const |
  23. +--------------------------+------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`get_shift<class_InputEventWithModifiers_get_shift>` **(** **)** const |
  25. +--------------------------+------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_alt<class_InputEventWithModifiers_set_alt>` **(** :ref:`bool<class_bool>` enable **)** |
  27. +--------------------------+------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`set_command<class_InputEventWithModifiers_set_command>` **(** :ref:`bool<class_bool>` enable **)** |
  29. +--------------------------+------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`set_control<class_InputEventWithModifiers_set_control>` **(** :ref:`bool<class_bool>` enable **)** |
  31. +--------------------------+------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`set_metakey<class_InputEventWithModifiers_set_metakey>` **(** :ref:`bool<class_bool>` enable **)** |
  33. +--------------------------+------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`set_shift<class_InputEventWithModifiers_set_shift>` **(** :ref:`bool<class_bool>` enable **)** |
  35. +--------------------------+------------------------------------------------------------------------------------------------------------+
  36. Member Variables
  37. ----------------
  38. - :ref:`bool<class_bool>` **alt** - State of the Alt modifier.
  39. - :ref:`bool<class_bool>` **command** - State of the Command modifier.
  40. - :ref:`bool<class_bool>` **control** - State of the Ctrl modifier.
  41. - :ref:`bool<class_bool>` **meta** - State of the Meta modifier.
  42. - :ref:`bool<class_bool>` **shift** - State of the Shift modifier.
  43. Description
  44. -----------
  45. Contains keys events informations with modifiers support like ``SHIFT`` or ``ALT``. See :ref:`Node._input<class_Node__input>`.
  46. Member Function Description
  47. ---------------------------
  48. .. _class_InputEventWithModifiers_get_alt:
  49. - :ref:`bool<class_bool>` **get_alt** **(** **)** const
  50. .. _class_InputEventWithModifiers_get_command:
  51. - :ref:`bool<class_bool>` **get_command** **(** **)** const
  52. .. _class_InputEventWithModifiers_get_control:
  53. - :ref:`bool<class_bool>` **get_control** **(** **)** const
  54. .. _class_InputEventWithModifiers_get_metakey:
  55. - :ref:`bool<class_bool>` **get_metakey** **(** **)** const
  56. .. _class_InputEventWithModifiers_get_shift:
  57. - :ref:`bool<class_bool>` **get_shift** **(** **)** const
  58. .. _class_InputEventWithModifiers_set_alt:
  59. - void **set_alt** **(** :ref:`bool<class_bool>` enable **)**
  60. .. _class_InputEventWithModifiers_set_command:
  61. - void **set_command** **(** :ref:`bool<class_bool>` enable **)**
  62. .. _class_InputEventWithModifiers_set_control:
  63. - void **set_control** **(** :ref:`bool<class_bool>` enable **)**
  64. .. _class_InputEventWithModifiers_set_metakey:
  65. - void **set_metakey** **(** :ref:`bool<class_bool>` enable **)**
  66. .. _class_InputEventWithModifiers_set_shift:
  67. - void **set_shift** **(** :ref:`bool<class_bool>` enable **)**