mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 22:00:26 +01:00
Update source/Irrlicht/Android/CIrrDeviceAndroid.cpp
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
85370ca6a4
commit
9871cd6c10
@ -65,7 +65,7 @@ CIrrDeviceAndroid::CIrrDeviceAndroid(const SIrrlichtCreationParameters& param)
|
|||||||
s32 Events = 0;
|
s32 Events = 0;
|
||||||
android_poll_source* Source = 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)
|
if(Source)
|
||||||
Source->process(Android, Source);
|
Source->process(Android, Source);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user