From c1f30a2905d7a44439c2c0797ddd87b58f79d724 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 25 Dec 2023 13:10:22 +0100 Subject: level select input support --- UI/HUD/CancelButton.gd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'UI/HUD') diff --git a/UI/HUD/CancelButton.gd b/UI/HUD/CancelButton.gd index 51b146b..a40d594 100644 --- a/UI/HUD/CancelButton.gd +++ b/UI/HUD/CancelButton.gd @@ -3,3 +3,8 @@ extends Button func _on_CancelButton_pressed(): Global.cancel_level() + + +func _input(event): + if event.is_action_pressed("BACK"): + Global.cancel_level() -- cgit v1.2.3