summaryrefslogtreecommitdiff
path: root/UI/HUD/CancelButton.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-25 13:10:22 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-25 13:10:22 +0100
commitc1f30a2905d7a44439c2c0797ddd87b58f79d724 (patch)
treeae973c30d87c3f24b0e778206a501a8dcd12ff73 /UI/HUD/CancelButton.gd
parentd74263a17e98159b2e3176a5f8e1ff361909c210 (diff)
level select input supportv2.1.0
Diffstat (limited to 'UI/HUD/CancelButton.gd')
-rw-r--r--UI/HUD/CancelButton.gd5
1 files changed, 5 insertions, 0 deletions
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()