Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Update source/Irrlicht/Android/CIrrDeviceAndroid.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: sfan5 <[email protected]>
  • Loading branch information
grorp and sfan5 authored Jan 19, 2024
1 parent 85370ca commit 9871cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Irrlicht/Android/CIrrDeviceAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9871cd6

Please sign in to comment.