2017-09-12 20:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-02-01 01:03:48 +00:00
|
|
|
<class name="VisualScriptInputAction" inherits="VisualScriptNode" version="4.0">
|
2017-09-12 20:42:36 +00:00
|
|
|
<brief_description>
|
2020-10-12 17:37:50 +00:00
|
|
|
A Visual Script node returning a state of an action.
|
2017-09-12 20:42:36 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-10-12 17:37:50 +00:00
|
|
|
[VisualScriptInputAction] can be used to check if an action is pressed or released.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<members>
|
2021-06-05 19:24:24 +00:00
|
|
|
<member name="action" type="StringName" setter="set_action_name" getter="get_action_name" default="&""">
|
2020-10-12 17:37:50 +00:00
|
|
|
Name of the action.
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="mode" type="int" setter="set_action_mode" getter="get_action_mode" enum="VisualScriptInputAction.Mode" default="0">
|
2020-10-12 17:37:50 +00:00
|
|
|
State of the action to check. See [enum Mode] for options.
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MODE_PRESSED" value="0" enum="Mode">
|
2020-10-12 17:37:50 +00:00
|
|
|
[code]True[/code] if action is pressed.
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MODE_RELEASED" value="1" enum="Mode">
|
2020-10-12 17:37:50 +00:00
|
|
|
[code]True[/code] if action is released (i.e. not pressed).
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MODE_JUST_PRESSED" value="2" enum="Mode">
|
2020-10-12 17:37:50 +00:00
|
|
|
[code]True[/code] on the frame the action was pressed.
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-11-24 22:16:30 +00:00
|
|
|
<constant name="MODE_JUST_RELEASED" value="3" enum="Mode">
|
2020-10-12 17:37:50 +00:00
|
|
|
[code]True[/code] on the frame the action was released.
|
2017-09-15 23:46:14 +00:00
|
|
|
</constant>
|
2017-09-12 20:42:36 +00:00
|
|
|
</constants>
|
|
|
|
</class>
|