From 4ef07cb9a501de989b5a09804464b0adac5b5940 Mon Sep 17 00:00:00 2001 From: obo <111236045+ohboh@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:26:16 +0800 Subject: [PATCH] Fix "emulate mouse from touch" setting affecting editor Make "emulate mouse from touch" always true in the editor --- main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 9014bfad294..ad10668482e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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");