class_inputeventaction.rst 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the InputEventAction.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_InputEventAction:
  5. InputEventAction
  6. ================
  7. **Inherits:** :ref:`InputEvent<class_inputevent>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Input event type for actions.
  12. Member Variables
  13. ----------------
  14. .. _class_InputEventAction_action:
  15. - :ref:`String<class_string>` **action** - The action's name. Actions are accessed via this :ref:`String<class_string>`.
  16. .. _class_InputEventAction_pressed:
  17. - :ref:`bool<class_bool>` **pressed** - If ``true`` the action's state is pressed. If ``false`` the action's state is released.
  18. Description
  19. -----------
  20. Contains a generic action which can be targeted from several type of inputs. Actions can be created from the project settings menu ``Project > Project Settings > Input Map``. See :ref:`Node._input<class_Node__input>`.