aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-07 18:55:47 +0200
committertpart <tpart120@proton.me>2024-07-07 18:55:47 +0200
commitf0f6af6822b3057f0735adf705bcce4c4548f321 (patch)
tree464a1ace9709984b6d767aeed45fd4ad63933625
parent44499c6e81dc5cc014f502cf6cb4db0c96081d7e (diff)
downloadhurrycurry-f0f6af6822b3057f0735adf705bcce4c4548f321.tar
hurrycurry-f0f6af6822b3057f0735adf705bcce4c4548f321.tar.bz2
hurrycurry-f0f6af6822b3057f0735adf705bcce4c4548f321.tar.zst
Fix menu opening on back
-rw-r--r--client/menu/game.gd2
-rw-r--r--client/project.godot7
2 files changed, 8 insertions, 1 deletions
diff --git a/client/menu/game.gd b/client/menu/game.gd
index c36fca86..f126b448 100644
--- a/client/menu/game.gd
+++ b/client/menu/game.gd
@@ -21,7 +21,7 @@ func _ready():
super()
func _input(_event):
- if Input.is_action_just_pressed("ui_cancel"):
+ if Input.is_action_just_pressed("ui_menu"):
open_ingame_menu()
func open_ingame_menu():
diff --git a/client/project.godot b/client/project.godot
index 8150da86..8a9b0003 100644
--- a/client/project.godot
+++ b/client/project.godot
@@ -47,6 +47,13 @@ ui_cancel={
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
]
}
+ui_menu={
+"deadzone": 0.5,
+"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194370,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
+, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
+, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"echo":false,"script":null)
+]
+}
forward={
"deadzone": 0.1,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null)