+14 votes

I dont understand the explanation for unhandled input. Can anyone give me examples of practical use for unhandled input?

in Engine by (26 points)

1 Answer

+31 votes

All input functions are explained here in the doc: http://docs.godotengine.org/en/stable/tutorials/engine/inputevent.html?highlight=_unhandled_input#how-does-it-work

_input is called anyways.

_input_event is called on Controls (like clicking on a button or typing text in a box)

_unhandled_input is called if none of the above capture the event, typically used in the game world itself. So for example, pressing [space] in a text box won't make your character jump if it uses that function.

by (28,833 points)

Got it, thanks for the answer.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.