Skip to content

Commit 4ef07cb

Browse files
committed
Fix "emulate mouse from touch" setting affecting editor
Make "emulate mouse from touch" always true in the editor
1 parent e3213aa commit 4ef07cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3191,6 +3191,10 @@ Error Main::setup2(bool p_show_boot_logo) {
31913191
}
31923192

31933193
id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true)));
3194+
3195+
if (editor) {
3196+
id->set_emulate_mouse_from_touch(true);
3197+
}
31943198
}
31953199

31963200
OS::get_singleton()->benchmark_end_measure("Startup", "Setup Window and Boot");

0 commit comments

Comments
 (0)