Node_Input Method |
Called when there is an input event. The input event propagates up through the node tree until a node consumes it.
It is only called if input processing is enabled, which is done automatically if this method is overridden, and can be toggled with SetProcessInput(Boolean).
To consume the input event and stop it propagating further to other nodes, SetInputAsHandled can be called.
For gameplay input, _UnhandledInput(InputEvent) and _UnhandledKeyInput(InputEventKey) are usually a better fit as they allow the GUI to intercept the events first.
Note: This method is only called if the node is present in the scene tree (i.e. if it's not orphan).
Namespace: Godot
public virtual void _Input( InputEvent event )
[Missing <param name="event"/> documentation for "M:Godot.Node._Input(Godot.InputEvent)"]