summaryrefslogtreecommitdiff
path: root/UI/HUD
diff options
context:
space:
mode:
Diffstat (limited to 'UI/HUD')
-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()