diff --git a/main/input_default.cpp b/main/input_default.cpp index 6fe199805..ae28b0284 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -666,6 +666,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;