Merge pull request #60731 from KoBeWi/action_editor

Clarify InputMap.action_get_events() in the editor
This commit is contained in:
Rémi Verschelde 2022-05-04 09:03:21 +02:00 committed by GitHub
commit 3ac1c8e9f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@
<argument index="0" name="action" type="StringName" /> <argument index="0" name="action" type="StringName" />
<description> <description>
Returns an array of [InputEvent]s associated with a given action. Returns an array of [InputEvent]s associated with a given action.
[b]Note:[/b] When used in the editor (e.g. a tool script or [EditorPlugin]), this method will return events for the editor action. If you want to access your project's input binds from the editor, read the [code]input/*[/code] settings from [ProjectSettings].
</description> </description>
</method> </method>
<method name="action_has_event"> <method name="action_has_event">