2
0

class_inputeventwithmodifiers.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/InputEventWithModifiers.xml.
  6. .. _class_InputEventWithModifiers:
  7. InputEventWithModifiers
  8. =======================
  9. **Inherits:** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`InputEventGesture<class_InputEventGesture>`, :ref:`InputEventKey<class_InputEventKey>`, :ref:`InputEventMouse<class_InputEventMouse>`
  11. Base class for keys events with modifiers.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Contains keys events information with modifiers support like :kbd:`Shift` or :kbd:`Alt`. See :ref:`Node._input<class_Node_method__input>`.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`../tutorials/inputs/inputevent`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-------------------------+----------------------------------------------------------------+-----------+
  26. | :ref:`bool<class_bool>` | :ref:`alt<class_InputEventWithModifiers_property_alt>` | ``false`` |
  27. +-------------------------+----------------------------------------------------------------+-----------+
  28. | :ref:`bool<class_bool>` | :ref:`command<class_InputEventWithModifiers_property_command>` | ``false`` |
  29. +-------------------------+----------------------------------------------------------------+-----------+
  30. | :ref:`bool<class_bool>` | :ref:`control<class_InputEventWithModifiers_property_control>` | ``false`` |
  31. +-------------------------+----------------------------------------------------------------+-----------+
  32. | :ref:`bool<class_bool>` | :ref:`meta<class_InputEventWithModifiers_property_meta>` | ``false`` |
  33. +-------------------------+----------------------------------------------------------------+-----------+
  34. | :ref:`bool<class_bool>` | :ref:`shift<class_InputEventWithModifiers_property_shift>` | ``false`` |
  35. +-------------------------+----------------------------------------------------------------+-----------+
  36. .. rst-class:: classref-section-separator
  37. ----
  38. .. rst-class:: classref-descriptions-group
  39. Property Descriptions
  40. ---------------------
  41. .. _class_InputEventWithModifiers_property_alt:
  42. .. rst-class:: classref-property
  43. :ref:`bool<class_bool>` **alt** = ``false``
  44. .. rst-class:: classref-property-setget
  45. - void **set_alt** **(** :ref:`bool<class_bool>` value **)**
  46. - :ref:`bool<class_bool>` **get_alt** **(** **)**
  47. State of the :kbd:`Alt` modifier.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_InputEventWithModifiers_property_command:
  51. .. rst-class:: classref-property
  52. :ref:`bool<class_bool>` **command** = ``false``
  53. .. rst-class:: classref-property-setget
  54. - void **set_command** **(** :ref:`bool<class_bool>` value **)**
  55. - :ref:`bool<class_bool>` **get_command** **(** **)**
  56. State of the :kbd:`Command` modifier.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_InputEventWithModifiers_property_control:
  60. .. rst-class:: classref-property
  61. :ref:`bool<class_bool>` **control** = ``false``
  62. .. rst-class:: classref-property-setget
  63. - void **set_control** **(** :ref:`bool<class_bool>` value **)**
  64. - :ref:`bool<class_bool>` **get_control** **(** **)**
  65. State of the :kbd:`Ctrl` modifier.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_InputEventWithModifiers_property_meta:
  69. .. rst-class:: classref-property
  70. :ref:`bool<class_bool>` **meta** = ``false``
  71. .. rst-class:: classref-property-setget
  72. - void **set_metakey** **(** :ref:`bool<class_bool>` value **)**
  73. - :ref:`bool<class_bool>` **get_metakey** **(** **)**
  74. State of the :kbd:`Meta` modifier.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_InputEventWithModifiers_property_shift:
  78. .. rst-class:: classref-property
  79. :ref:`bool<class_bool>` **shift** = ``false``
  80. .. rst-class:: classref-property-setget
  81. - void **set_shift** **(** :ref:`bool<class_bool>` value **)**
  82. - :ref:`bool<class_bool>` **get_shift** **(** **)**
  83. State of the :kbd:`Shift` modifier.
  84. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  85. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  86. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`