diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-27 00:37:38 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-06-27 00:37:38 +0200 |
commit | fd629cefc69189751f003dc3add47666f2742ae3 (patch) | |
tree | eb1ae8d4fdc41f876550b16926f7924ce3e119d9 | |
parent | 336f7f159be619fef0ec7665fccfd6204879d879 (diff) | |
download | hurrycurry-fd629cefc69189751f003dc3add47666f2742ae3.tar hurrycurry-fd629cefc69189751f003dc3add47666f2742ae3.tar.bz2 hurrycurry-fd629cefc69189751f003dc3add47666f2742ae3.tar.zst |
add zoom joypad controls
-rw-r--r-- | client/menu/menu_manager.gd | 2 | ||||
-rw-r--r-- | client/project.godot | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/client/menu/menu_manager.gd b/client/menu/menu_manager.gd index 079f6e44..2d196d71 100644 --- a/client/menu/menu_manager.gd +++ b/client/menu/menu_manager.gd @@ -17,7 +17,7 @@ func _ready(): Global.fade_next = false transition.fade_in() -func _input(event): +func _input(_event): if Input.is_action_just_pressed("ui_cancel") && menu_stack.size() > 1: go_back() diff --git a/client/project.godot b/client/project.godot index e2d5da31..19ad4911 100644 --- a/client/project.godot +++ b/client/project.godot @@ -76,13 +76,13 @@ rotate_right={ rotate_up={ "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":4194320,"key_label":0,"unicode":0,"echo":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":1.0,"script":null) +, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":-1.0,"script":null) ] } rotate_down={ "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":4194322,"key_label":0,"unicode":0,"echo":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":-1.0,"script":null) +, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":1.0,"script":null) ] } interact={ @@ -107,12 +107,14 @@ zoom_in={ "deadzone": 0.5, "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":4194323,"key_label":0,"unicode":0,"echo":false,"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":4194437,"key_label":0,"unicode":43,"echo":false,"script":null) +, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":5,"axis_value":1.0,"script":null) ] } zoom_out={ "deadzone": 0.5, "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":4194324,"key_label":0,"unicode":0,"echo":false,"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":4194435,"key_label":0,"unicode":45,"echo":false,"script":null) +, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":4,"axis_value":1.0,"script":null) ] } |