:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/InputEventWithModifiers.xml. .. _class_InputEventWithModifiers: InputEventWithModifiers ======================= **Inherits:** :ref:`InputEvent` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`InputEventGesture`, :ref:`InputEventKey`, :ref:`InputEventMouse` Base class for keys events with modifiers. .. rst-class:: classref-introduction-group Description ----------- Contains keys events information with modifiers support like :kbd:`Shift` or :kbd:`Alt`. See :ref:`Node._input`. .. rst-class:: classref-introduction-group Tutorials --------- - :doc:`../tutorials/inputs/inputevent` .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------+----------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`alt` | ``false`` | +-------------------------+----------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`command` | ``false`` | +-------------------------+----------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`control` | ``false`` | +-------------------------+----------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`meta` | ``false`` | +-------------------------+----------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`shift` | ``false`` | +-------------------------+----------------------------------------------------------------+-----------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_InputEventWithModifiers_property_alt: .. rst-class:: classref-property :ref:`bool` **alt** = ``false`` .. rst-class:: classref-property-setget - void **set_alt** **(** :ref:`bool` value **)** - :ref:`bool` **get_alt** **(** **)** State of the :kbd:`Alt` modifier. .. rst-class:: classref-item-separator ---- .. _class_InputEventWithModifiers_property_command: .. rst-class:: classref-property :ref:`bool` **command** = ``false`` .. rst-class:: classref-property-setget - void **set_command** **(** :ref:`bool` value **)** - :ref:`bool` **get_command** **(** **)** State of the :kbd:`Command` modifier. .. rst-class:: classref-item-separator ---- .. _class_InputEventWithModifiers_property_control: .. rst-class:: classref-property :ref:`bool` **control** = ``false`` .. rst-class:: classref-property-setget - void **set_control** **(** :ref:`bool` value **)** - :ref:`bool` **get_control** **(** **)** State of the :kbd:`Ctrl` modifier. .. rst-class:: classref-item-separator ---- .. _class_InputEventWithModifiers_property_meta: .. rst-class:: classref-property :ref:`bool` **meta** = ``false`` .. rst-class:: classref-property-setget - void **set_metakey** **(** :ref:`bool` value **)** - :ref:`bool` **get_metakey** **(** **)** State of the :kbd:`Meta` modifier. .. rst-class:: classref-item-separator ---- .. _class_InputEventWithModifiers_property_shift: .. rst-class:: classref-property :ref:`bool` **shift** = ``false`` .. rst-class:: classref-property-setget - void **set_shift** **(** :ref:`bool` value **)** - :ref:`bool` **get_shift** **(** **)** State of the :kbd:`Shift` modifier. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`