class_inputeventaction.rst 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. Properties
  13. ----------
  14. +-----------------------------+---------------------------------------------------------+
  15. | :ref:`String<class_String>` | :ref:`action<class_InputEventAction_property_action>` |
  16. +-----------------------------+---------------------------------------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`pressed<class_InputEventAction_property_pressed>` |
  18. +-----------------------------+---------------------------------------------------------+
  19. Description
  20. -----------
  21. 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_method__input>`.
  22. Tutorials
  23. ---------
  24. - `#actions <../tutorials/inputs/inputevent.html#actions>`_ in :doc:`../tutorials/inputs/inputevent`
  25. Property Descriptions
  26. ---------------------
  27. .. _class_InputEventAction_property_action:
  28. - :ref:`String<class_String>` **action**
  29. +----------+-------------------+
  30. | *Setter* | set_action(value) |
  31. +----------+-------------------+
  32. | *Getter* | get_action() |
  33. +----------+-------------------+
  34. The action's name. Actions are accessed via this :ref:`String<class_String>`.
  35. .. _class_InputEventAction_property_pressed:
  36. - :ref:`bool<class_bool>` **pressed**
  37. +----------+--------------------+
  38. | *Setter* | set_pressed(value) |
  39. +----------+--------------------+
  40. | *Getter* | is_pressed() |
  41. +----------+--------------------+
  42. If ``true``, the action's state is pressed. If ``false``, the action's state is released.