Add reference to InputEventJoypadButton in _shortcut_input doc

(cherry picked from commit 9a439b246a)
This commit is contained in:
Chronos-W 2024-03-25 19:38:33 -06:00 committed by Rémi Verschelde
parent 31fd129ba0
commit 64093528cd
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@
<return type="void" /> <return type="void" />
<param index="0" name="event" type="InputEvent" /> <param index="0" name="event" type="InputEvent" />
<description> <description>
Called when an [InputEventKey] or [InputEventShortcut] hasn't been consumed by [method _input] or any GUI [Control] item. The input event propagates up through the node tree until a node consumes it. Called when an [InputEventKey]¸ [InputEventShortcut], or [InputEventJoypadButton] hasn't been consumed by [method _input] or any GUI [Control] item. The input event propagates up through the node tree until a node consumes it.
It is only called if shortcut processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process_shortcut_input]. It is only called if shortcut processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process_shortcut_input].
To consume the input event and stop it propagating further to other nodes, [method Viewport.set_input_as_handled] can be called. To consume the input event and stop it propagating further to other nodes, [method Viewport.set_input_as_handled] can be called.
This method can be used to handle shortcuts. This method can be used to handle shortcuts.