mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Follow up to https://github.com/godotengine/godot/pull/76399 to fix input ANR in the Godot Android editor
(cherry picked from commit 367061cf9c)
This commit is contained in:
parent
d07d4d90d0
commit
07af84689f
1 changed files with 1 additions and 0 deletions
|
|
@ -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"
|
// 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
|
// if the OS or its abstraction class hasn't properly reported that touch pointers raised
|
||||||
void Input::ensure_touch_mouse_raised() {
|
void Input::ensure_touch_mouse_raised() {
|
||||||
|
_THREAD_SAFE_METHOD_
|
||||||
if (mouse_from_touch_index != -1) {
|
if (mouse_from_touch_index != -1) {
|
||||||
mouse_from_touch_index = -1;
|
mouse_from_touch_index = -1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue