From a2884e40000548a48b1e39842bbdc4558bc3b918 Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Thu, 30 Nov 2023 21:52:04 +0700 Subject: [PATCH] Android: Make ALooper_pollAll call always non-blocking (#255) --- source/Irrlicht/Android/CIrrDeviceAndroid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/Android/CIrrDeviceAndroid.cpp b/source/Irrlicht/Android/CIrrDeviceAndroid.cpp index fe667315..b1df885f 100644 --- a/source/Irrlicht/Android/CIrrDeviceAndroid.cpp +++ b/source/Irrlicht/Android/CIrrDeviceAndroid.cpp @@ -106,7 +106,7 @@ bool CIrrDeviceAndroid::run() s32 Events = 0; android_poll_source* Source = 0; - while ((id = ALooper_pollAll(((Focused && !Paused) || !Initialized) ? 0 : -1, 0, &Events, (void**)&Source)) >= 0) + while ((id = ALooper_pollAll(0, 0, &Events, (void**)&Source)) >= 0) { if(Source) Source->process(Android, Source);