From 1d7354f993a70868a646f77373d8033a14c96b52 Mon Sep 17 00:00:00 2001 From: WallK Date: Thu, 21 Dec 2023 12:29:46 +0200 Subject: [PATCH] Quit on Select (share and so on) and CTRL+Q --- tools/configurator/main.gd | 4 ++++ tools/configurator/project.godot | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/tools/configurator/main.gd b/tools/configurator/main.gd index 24d8b96f..e52894b8 100755 --- a/tools/configurator/main.gd +++ b/tools/configurator/main.gd @@ -2,3 +2,7 @@ extends Control func _ready(): $MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer/resume.grab_focus() #Required to enable controller focusing + +func _input(event): + if event.is_action_pressed("quit"): + get_tree().quit() diff --git a/tools/configurator/project.godot b/tools/configurator/project.godot index 7d43bfe9..4b9159fb 100755 --- a/tools/configurator/project.godot +++ b/tools/configurator/project.godot @@ -56,6 +56,12 @@ rekku_hide={ , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":72,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null) ] } +quit={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":15,"pressure":0.0,"pressed":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":81,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} [rendering]