From 2509c1691dcc75e8880eb59e9330557bdbd675b3 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Thu, 11 May 2023 19:10:31 -0700 Subject: [PATCH] Follow up to https://github.com/godotengine/godot/pull/76400 to fix input ANR in the Godot Android editor --- main/input_default.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main/input_default.cpp b/main/input_default.cpp index 606921cea15c..3a3ee3a09efa 100644 --- a/main/input_default.cpp +++ b/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" // if the OS or its abstraction class hasn't properly reported that touch pointers raised void InputDefault::ensure_touch_mouse_raised() { + _THREAD_SAFE_METHOD_ if (mouse_from_touch_index != -1) { mouse_from_touch_index = -1;