Merge pull request #76981 from m4gr3d/fix_input_anr_3x

[3.x] Fix input ANR in the Godot Android editor
This commit is contained in:
Rémi Verschelde 2023-05-12 11:16:15 +02:00 committed by GitHub
commit 3762fe3d9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;