diff --git a/project.godot b/project.godot index c69f90a..8d9b199 100644 --- a/project.godot +++ b/project.godot @@ -78,7 +78,7 @@ ui_cancel={ , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null) ] } -"Focus Controls"={ +ui_focus_controls={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194306,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) ] diff --git a/ui/ui.gd b/ui/ui.gd index 4048eb0..f273b55 100644 --- a/ui/ui.gd +++ b/ui/ui.gd @@ -55,7 +55,7 @@ func _input(event: InputEvent) -> void: if ( event is InputEventJoypadMotion or event is InputEventJoypadButton - or event.is_action_pressed("Focus Controls") + or event.is_action_pressed("ui_focus_controls") ): _focus_something()