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")
?
Godot versions 3.0 and up have new input-polling functions that can be used anywhere in your scripts:
Input.is_action_pressed(action)
- checks if the action is being pressedInput.is_action_just_pressed(action)
- checks if the action was just pressedInput.is_action_just_released(action)
- checks if the action was just released