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

Android: Make ALooper_pollAll call always non-blocking #255

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/Irrlicht/Android/CIrrDeviceAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down