Update source/Irrlicht/Android/CIrrDeviceAndroid.cpp

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
grorp 2024-01-19 15:31:27 +01:00 committed by GitHub
parent 85370ca6a4
commit 9871cd6c10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ CIrrDeviceAndroid::CIrrDeviceAndroid(const SIrrlichtCreationParameters& param)
s32 Events = 0;
android_poll_source* Source = 0;
while ((ALooper_pollAll(((Focused && !Paused && !Stopped) || !Initialized) ? 0 : -1, 0, &Events, (void**)&Source)) >= 0)
while ((ALooper_pollAll((!Initialized || isWindowActive()) ? 0 : -1, 0, &Events, (void**)&Source)) >= 0)
{
if(Source)
Source->process(Android, Source);