VisualScriptInputAction.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptInputAction" inherits="VisualScriptNode" 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. <methods>
  12. </methods>
  13. <members>
  14. <member name="action" type="String" setter="set_action_name" getter="get_action_name" default="&quot;&quot;">
  15. Name of the action.
  16. </member>
  17. <member name="mode" type="int" setter="set_action_mode" getter="get_action_mode" enum="VisualScriptInputAction.Mode" default="0">
  18. State of the action to check. See [enum Mode] for options.
  19. </member>
  20. </members>
  21. <constants>
  22. <constant name="MODE_PRESSED" value="0" enum="Mode">
  23. [code]True[/code] if action is pressed.
  24. </constant>
  25. <constant name="MODE_RELEASED" value="1" enum="Mode">
  26. [code]True[/code] if action is released (i.e. not pressed).
  27. </constant>
  28. <constant name="MODE_JUST_PRESSED" value="2" enum="Mode">
  29. [code]True[/code] on the frame the action was pressed.
  30. </constant>
  31. <constant name="MODE_JUST_RELEASED" value="3" enum="Mode">
  32. [code]True[/code] on the frame the action was released.
  33. </constant>
  34. </constants>
  35. </class>