class_inputeventwithmodifiers.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the InputEventWithModifiers.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_InputEventWithModifiers:
  6. InputEventWithModifiers
  7. =======================
  8. **Inherits:** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`InputEventGesture<class_InputEventGesture>`, :ref:`InputEventKey<class_InputEventKey>`, :ref:`InputEventMouse<class_InputEventMouse>`
  10. **Category:** Core
  11. Brief Description
  12. -----------------
  13. Base class for keys events with modifiers.
  14. Properties
  15. ----------
  16. +-------------------------+----------------------------------------------------------------+-------+
  17. | :ref:`bool<class_bool>` | :ref:`alt<class_InputEventWithModifiers_property_alt>` | false |
  18. +-------------------------+----------------------------------------------------------------+-------+
  19. | :ref:`bool<class_bool>` | :ref:`command<class_InputEventWithModifiers_property_command>` | false |
  20. +-------------------------+----------------------------------------------------------------+-------+
  21. | :ref:`bool<class_bool>` | :ref:`control<class_InputEventWithModifiers_property_control>` | false |
  22. +-------------------------+----------------------------------------------------------------+-------+
  23. | :ref:`bool<class_bool>` | :ref:`meta<class_InputEventWithModifiers_property_meta>` | false |
  24. +-------------------------+----------------------------------------------------------------+-------+
  25. | :ref:`bool<class_bool>` | :ref:`shift<class_InputEventWithModifiers_property_shift>` | false |
  26. +-------------------------+----------------------------------------------------------------+-------+
  27. Description
  28. -----------
  29. Contains keys events information with modifiers support like ``Shift`` or ``Alt``. See :ref:`Node._input<class_Node_method__input>`.
  30. Tutorials
  31. ---------
  32. - :doc:`../tutorials/inputs/inputevent`
  33. Property Descriptions
  34. ---------------------
  35. .. _class_InputEventWithModifiers_property_alt:
  36. - :ref:`bool<class_bool>` **alt**
  37. +-----------+----------------+
  38. | *Default* | false |
  39. +-----------+----------------+
  40. | *Setter* | set_alt(value) |
  41. +-----------+----------------+
  42. | *Getter* | get_alt() |
  43. +-----------+----------------+
  44. State of the ``Alt`` modifier.
  45. .. _class_InputEventWithModifiers_property_command:
  46. - :ref:`bool<class_bool>` **command**
  47. +-----------+--------------------+
  48. | *Default* | false |
  49. +-----------+--------------------+
  50. | *Setter* | set_command(value) |
  51. +-----------+--------------------+
  52. | *Getter* | get_command() |
  53. +-----------+--------------------+
  54. State of the ``Command`` modifier.
  55. .. _class_InputEventWithModifiers_property_control:
  56. - :ref:`bool<class_bool>` **control**
  57. +-----------+--------------------+
  58. | *Default* | false |
  59. +-----------+--------------------+
  60. | *Setter* | set_control(value) |
  61. +-----------+--------------------+
  62. | *Getter* | get_control() |
  63. +-----------+--------------------+
  64. State of the ``Ctrl`` modifier.
  65. .. _class_InputEventWithModifiers_property_meta:
  66. - :ref:`bool<class_bool>` **meta**
  67. +-----------+--------------------+
  68. | *Default* | false |
  69. +-----------+--------------------+
  70. | *Setter* | set_metakey(value) |
  71. +-----------+--------------------+
  72. | *Getter* | get_metakey() |
  73. +-----------+--------------------+
  74. State of the ``Meta`` modifier.
  75. .. _class_InputEventWithModifiers_property_shift:
  76. - :ref:`bool<class_bool>` **shift**
  77. +-----------+------------------+
  78. | *Default* | false |
  79. +-----------+------------------+
  80. | *Setter* | set_shift(value) |
  81. +-----------+------------------+
  82. | *Getter* | get_shift() |
  83. +-----------+------------------+
  84. State of the ``Shift`` modifier.