keyboard-eventsgodotgdscript

Godot Keyboard Events


I am studying the Godot Engine and GDScript and I searched on the internet about keyboard events, but I didn't understand. Is there something in Godot like: on_key_down("keycode")?


Solution

  • You can use InputEvent to check for specific Keys.

    Check out the documentation: http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html