.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_InputEventWithModifiers: InputEventWithModifiers ======================= **Inherits:** :ref:`InputEvent` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`InputEventKey`, :ref:`InputEventMouse` **Category:** Core Brief Description ----------------- Base class for input events with modifiers. Member Functions ---------------- +--------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_alt` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_command` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_control` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_metakey` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_shift` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_alt` **(** :ref:`bool` enable **)** | +--------------------------+------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_command` **(** :ref:`bool` enable **)** | +--------------------------+------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_control` **(** :ref:`bool` enable **)** | +--------------------------+------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_metakey` **(** :ref:`bool` enable **)** | +--------------------------+------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shift` **(** :ref:`bool` enable **)** | +--------------------------+------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`bool` **alt** - State of the Alt modifier. - :ref:`bool` **command** - State of the Command modifier. - :ref:`bool` **control** - State of the Ctrl modifier. - :ref:`bool` **meta** - State of the Meta modifier. - :ref:`bool` **shift** - State of the Shift modifier. Member Function Description --------------------------- .. _class_InputEventWithModifiers_get_alt: - :ref:`bool` **get_alt** **(** **)** const .. _class_InputEventWithModifiers_get_command: - :ref:`bool` **get_command** **(** **)** const .. _class_InputEventWithModifiers_get_control: - :ref:`bool` **get_control** **(** **)** const .. _class_InputEventWithModifiers_get_metakey: - :ref:`bool` **get_metakey** **(** **)** const .. _class_InputEventWithModifiers_get_shift: - :ref:`bool` **get_shift** **(** **)** const .. _class_InputEventWithModifiers_set_alt: - void **set_alt** **(** :ref:`bool` enable **)** .. _class_InputEventWithModifiers_set_command: - void **set_command** **(** :ref:`bool` enable **)** .. _class_InputEventWithModifiers_set_control: - void **set_control** **(** :ref:`bool` enable **)** .. _class_InputEventWithModifiers_set_metakey: - void **set_metakey** **(** :ref:`bool` enable **)** .. _class_InputEventWithModifiers_set_shift: - void **set_shift** **(** :ref:`bool` enable **)**