diff options
author | Chronos-W <35936541+Chronos-W@users.noreply.github.com> | 2024-03-25 19:38:33 -0600 |
---|---|---|
committer | Chronos-W <35936541+Chronos-W@users.noreply.github.com> | 2024-03-25 19:38:33 -0600 |
commit | 9a439b246a875e50fe5e911182e935945f2990cb (patch) | |
tree | 1be2acc8d80074131abfe6114f282b7c29266c60 | |
parent | fe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff) | |
download | redot-engine-9a439b246a875e50fe5e911182e935945f2990cb.tar.gz |
Add reference to InputEventJoypadButton in _shortcut_input doc
-rw-r--r-- | doc/classes/Node.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index b786b67933..8186b6cc74 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -100,7 +100,7 @@ <return type="void" /> <param index="0" name="event" type="InputEvent" /> <description> - Called when an [InputEventKey] or [InputEventShortcut] hasn't been consumed by [method _input] or any GUI [Control] item. It is called before [method _unhandled_key_input] and [method _unhandled_input]. 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. It is called before [method _unhandled_key_input] and [method _unhandled_input]. 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]. 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. For generic GUI events, use [method _input] instead. Gameplay events should usually be handled with either [method _unhandled_input] or [method _unhandled_key_input]. |