VisualScriptInputAction.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptInputAction" inherits="VisualScriptNode" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. A Visual Script node returning a state of an action.
  5. </brief_description>
  6. <description>
  7. [VisualScriptInputAction] can be used to check if an action is pressed or released.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="action" type="StringName" setter="set_action_name" getter="get_action_name" default="&amp;&quot;&quot;">
  13. Name of the action.
  14. </member>
  15. <member name="mode" type="int" setter="set_action_mode" getter="get_action_mode" enum="VisualScriptInputAction.Mode" default="0">
  16. State of the action to check. See [enum Mode] for options.
  17. </member>
  18. </members>
  19. <constants>
  20. <constant name="MODE_PRESSED" value="0" enum="Mode">
  21. [code]True[/code] if action is pressed.
  22. </constant>
  23. <constant name="MODE_RELEASED" value="1" enum="Mode">
  24. [code]True[/code] if action is released (i.e. not pressed).
  25. </constant>
  26. <constant name="MODE_JUST_PRESSED" value="2" enum="Mode">
  27. [code]True[/code] on the frame the action was pressed.
  28. </constant>
  29. <constant name="MODE_JUST_RELEASED" value="3" enum="Mode">
  30. [code]True[/code] on the frame the action was released.
  31. </constant>
  32. </constants>
  33. </class>