Fix "emulate mouse from touch" setting affecting editor

Make "emulate mouse from touch" always true in the editor
This commit is contained in:
obo 2024-10-01 00:26:16 +08:00 committed by Yaji
parent e3213aaef5
commit 4ef07cb9a5

View File

@ -3191,6 +3191,10 @@ Error Main::setup2(bool p_show_boot_logo) {
}
id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true)));
if (editor) {
id->set_emulate_mouse_from_touch(true);
}
}
OS::get_singleton()->benchmark_end_measure("Startup", "Setup Window and Boot");