Fix Android logic for deferred window input events being inverted

Notably fixes issues with `is_action_just_*` queries in `_physics_process`
for TouchScreenButton.

Fixes #66318.
Fixes #82396.

(cherry picked from commit 5137497c18)
This commit is contained in:
Alexander Hartmann 2023-10-14 02:17:28 +02:00 committed by Yuri Sizov
parent d73b76da02
commit 3d8c77dc92
1 changed files with 2 additions and 2 deletions

View File

@ -299,9 +299,9 @@ void DisplayServerAndroid::_window_callback(const Callable &p_callable, const Va
Variant ret;
Callable::CallError ce;
if (p_deferred) {
p_callable.callp((const Variant **)&argp, 1, ret, ce);
} else {
p_callable.call_deferredp((const Variant **)&argp, 1);
} else {
p_callable.callp((const Variant **)&argp, 1, ret, ce);
}
}
}