Browse Source

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 5137497c18b9ddf081857e8ca224aee626a5997f)
Alexander Hartmann 1 năm trước cách đây
mục cha
commit
3d8c77dc92
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      platform/android/display_server_android.cpp

+ 2 - 2
platform/android/display_server_android.cpp

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