preliminary support for controllers
This commit is contained in:
parent
8f18e43af7
commit
ff8bd770d2
4 changed files with 76 additions and 12 deletions
|
@ -143,9 +143,9 @@ func _unhandled_key_input(event: InputEvent) -> void:
|
|||
if event.is_pressed() and event is InputEventKey:
|
||||
var current_levels := get_current_levels()
|
||||
if len(current_levels) and changing_level == false:
|
||||
if event.keycode == KEY_ESCAPE:
|
||||
if Input.is_action_just_pressed(\"pause_game\"):
|
||||
pause_game()
|
||||
elif event.keycode == KEY_R:
|
||||
elif Input.is_action_just_pressed(\"restart_level\"):
|
||||
pause_game()
|
||||
restart_level()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue