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