瀏覽代碼

Merge pull request #97649 from ohboh/literally-unusable-on-mobile-without-this

Fix `emulate_mouse_from_touch` setting affecting editor
Thaddeus Crews 10 月之前
父節點
當前提交
6ec3dc1fb5
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      main/main.cpp

+ 4 - 0
main/main.cpp

@@ -3201,6 +3201,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");