Android: Make ALooper_pollAll call always non-blocking (#255)

This commit is contained in:
Muhammad Rifqi Priyo Susanto 2023-11-30 21:52:04 +07:00 committed by GitHub
parent b284ea076b
commit a2884e4000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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