Function Node._unhandledInput
Called when an InputEvent
hasn't been consumed by input
or any GUI. The input event propagates up through the node tree until a node consumes it.
It is only called if unhandled input processing is enabled, which is done automatically if this method is overridden, and can be toggled with setProcessUnhandledInput
.
To consume the input event and stop it propagating further to other nodes, SceneTree
can be called.
For gameplay input, this and unhandledKeyInput
are usually a better fit than input
as they allow the GUI to intercept the events first.