Skip to content

Commit 6ec3dc1

Browse files
committed
Merge pull request #97649 from ohboh/literally-unusable-on-mobile-without-this
Fix `emulate_mouse_from_touch` setting affecting editor
2 parents 7dbea98 + 4ef07cb commit 6ec3dc1

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
@@ -3201,6 +3201,10 @@ Error Main::setup2(bool p_show_boot_logo) {
32013201
}
32023202

32033203
id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true)));
3204+
3205+
if (editor) {
3206+
id->set_emulate_mouse_from_touch(true);
3207+
}
32043208
}
32053209

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

0 commit comments

Comments
 (0)