Explorar o código

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

(cherry picked from commit 367061cf9c03c88374be07d2cf2b452e2ccaf06f)
Fredia Huya-Kouadio %!s(int64=2) %!d(string=hai) anos
pai
achega
07af84689f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      core/input/input.cpp

+ 1 - 0
core/input/input.cpp

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