Skip to content

Commit 367061c

Browse files
committed
Follow up to godotengine#76399 to fix input ANR in the Godot Android editor
1 parent 50c5ed4 commit 367061c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/input/input.cpp

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

0 commit comments

Comments
 (0)