diff options
author | Malfurious <m@lfurio.us> | 2022-10-30 00:57:26 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-10-30 00:57:26 -0400 |
commit | acaea7bf1657f02670c2551357be178b0bf16f75 (patch) | |
tree | 57519e2a84beb60ce726075420997b6cd03ba12d /assets/view_model/ViewModel.gd | |
parent | 31bc7653eb89688b9890523e1f2b39cc867837fc (diff) | |
download | project-s-acaea7bf1657f02670c2551357be178b0bf16f75.tar.gz project-s-acaea7bf1657f02670c2551357be178b0bf16f75.zip |
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 <m@lfurio.us>
Diffstat (limited to 'assets/view_model/ViewModel.gd')
-rw-r--r-- | assets/view_model/ViewModel.gd | 3 |
1 files changed, 3 insertions, 0 deletions
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: |