From acaea7bf1657f02670c2551357be178b0bf16f75 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sun, 30 Oct 2022 00:57:26 -0400 Subject: Add menu placeholder hotkey It would be nice to eventually use Escape to open/close an in-game menu. For now, use the key as a shortcut to close the application. Signed-off-by: Malfurious --- assets/view_model/ViewModel.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'assets/view_model') diff --git a/assets/view_model/ViewModel.gd b/assets/view_model/ViewModel.gd index 6d42a5a..949bfab 100644 --- a/assets/view_model/ViewModel.gd +++ b/assets/view_model/ViewModel.gd @@ -68,6 +68,9 @@ func _physics_process(delta): if Input.is_action_just_pressed("ping"): cycle_parent() + if Input.is_action_just_pressed("menu"): + get_tree().quit() + func _unhandled_input(event): # Implement mouse aim direction if event is InputEventMouseMotion: -- cgit v1.2.3