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.
This commit is contained in:
Alexander Hartmann 2023-10-14 02:17:28 +02:00 committed by Rémi Verschelde
parent 50d17f6b8c
commit 5137497c18
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -310,9 +310,9 @@ void DisplayServerAndroid::window_set_drop_files_callback(const Callable &p_call
void DisplayServerAndroid::_window_callback(const Callable &p_callable, const Variant &p_arg, bool p_deferred) const { void DisplayServerAndroid::_window_callback(const Callable &p_callable, const Variant &p_arg, bool p_deferred) const {
if (!p_callable.is_null()) { if (!p_callable.is_null()) {
if (p_deferred) { if (p_deferred) {
p_callable.call(p_arg);
} else {
p_callable.call_deferred(p_arg); p_callable.call_deferred(p_arg);
} else {
p_callable.call(p_arg);
} }
} }
} }