Mark touch emulation project settings as basic

These settings are likely to be toggled often during development,
so they should be as accessible as possible.
This commit is contained in:
Hugo Locurcio 2023-01-23 10:07:47 +01:00
parent eaf306e0b1
commit 33e9dff3de
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 2 additions and 2 deletions

View File

@ -2165,7 +2165,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
if (id) { if (id) {
agile_input_event_flushing = GLOBAL_DEF("input_devices/buffering/agile_event_flushing", false); agile_input_event_flushing = GLOBAL_DEF("input_devices/buffering/agile_event_flushing", false);
if (bool(GLOBAL_DEF("input_devices/pointing/emulate_touch_from_mouse", false)) && if (bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_touch_from_mouse", false)) &&
!(editor || project_manager)) { !(editor || project_manager)) {
if (!DisplayServer::get_singleton()->is_touchscreen_available()) { if (!DisplayServer::get_singleton()->is_touchscreen_available()) {
//only if no touchscreen ui hint, set emulation //only if no touchscreen ui hint, set emulation
@ -2173,7 +2173,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
} }
} }
id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF("input_devices/pointing/emulate_mouse_from_touch", true))); id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true)));
} }
MAIN_PRINT("Main: Load Translations and Remaps"); MAIN_PRINT("Main: Load Translations and Remaps");