From 5137497c18b9ddf081857e8ca224aee626a5997f Mon Sep 17 00:00:00 2001 From: Alexander Hartmann Date: Sat, 14 Oct 2023 02:17:28 +0200 Subject: [PATCH] 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. --- platform/android/display_server_android.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/android/display_server_android.cpp b/platform/android/display_server_android.cpp index 445a6ea6ea7..dd5ab46bd76 100644 --- a/platform/android/display_server_android.cpp +++ b/platform/android/display_server_android.cpp @@ -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 { if (!p_callable.is_null()) { if (p_deferred) { - p_callable.call(p_arg); - } else { p_callable.call_deferred(p_arg); + } else { + p_callable.call(p_arg); } } }