2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2021-04-26 13:14:51 +02:00
|
|
|
<class name="VisualScriptInputAction" inherits="VisualScriptNode" version="3.4">
|
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>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="action" type="String" 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>
|