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