瀏覽代碼

Follow up to https://github.com/godotengine/godot/pull/76400 to fix input ANR in the Godot Android editor

Fredia Huya-Kouadio 2 年之前
父節點
當前提交
2509c1691d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      main/input_default.cpp

+ 1 - 0
main/input_default.cpp

@@ -661,6 +661,7 @@ bool InputDefault::is_emulating_touch_from_mouse() const {
 // Calling this whenever the game window is focused helps unstucking the "touch mouse"
 // Calling this whenever the game window is focused helps unstucking the "touch mouse"
 // if the OS or its abstraction class hasn't properly reported that touch pointers raised
 // if the OS or its abstraction class hasn't properly reported that touch pointers raised
 void InputDefault::ensure_touch_mouse_raised() {
 void InputDefault::ensure_touch_mouse_raised() {
+	_THREAD_SAFE_METHOD_
 	if (mouse_from_touch_index != -1) {
 	if (mouse_from_touch_index != -1) {
 		mouse_from_touch_index = -1;
 		mouse_from_touch_index = -1;