InputEventAction.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventAction" inherits="InputEvent" category="Core" version="3.1">
  3. <brief_description>
  4. Input event type for actions.
  5. </brief_description>
  6. <description>
  7. Contains a generic action which can be targeted from several type of inputs. Actions can be created from the project settings menu [code]Project &gt; Project Settings &gt; Input Map[/code]. See [method Node._input].
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html#actions</link>
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. </methods>
  16. <members>
  17. <member name="action" type="String" setter="set_action" getter="get_action">
  18. The action's name. Actions are accessed via this [String].
  19. </member>
  20. <member name="pressed" type="bool" setter="set_pressed" getter="is_pressed">
  21. If [code]true[/code], the action's state is pressed. If [code]false[/code], the action's state is released.
  22. </member>
  23. </members>
  24. <constants>
  25. </constants>
  26. </class>