1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix type error in InputEventAction.action description

This commit is contained in:
Haoyu Qiu
2025-05-09 11:08:07 +08:00
parent 8f78e7510d
commit 664b2f7c71

View File

@@ -14,7 +14,7 @@
</tutorials> </tutorials>
<members> <members>
<member name="action" type="StringName" setter="set_action" getter="get_action" default="&amp;&quot;&quot;"> <member name="action" type="StringName" setter="set_action" getter="get_action" default="&amp;&quot;&quot;">
The action's name. Actions are accessed via this [String]. The action's name. This is usually the name of an existing action in the [InputMap] which you want this custom event to match.
</member> </member>
<member name="event_index" type="int" setter="set_event_index" getter="get_event_index" default="-1"> <member name="event_index" type="int" setter="set_event_index" getter="get_event_index" default="-1">
The real event index in action this event corresponds to (from events defined for this action in the [InputMap]). If [code]-1[/code], a unique ID will be used and actions pressed with this ID will need to be released with another [InputEventAction]. The real event index in action this event corresponds to (from events defined for this action in the [InputMap]). If [code]-1[/code], a unique ID will be used and actions pressed with this ID will need to be released with another [InputEventAction].