diff --git a/CMakeLists.txt b/CMakeLists.txt index 4098779f8670..b71cd8a4a381 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.25) +cmake_minimum_required(VERSION 3.20) project(raylib) # Avoid excessive expansion of variables in conditionals. In particular, if diff --git a/src/platforms/rcore_android.c b/src/platforms/rcore_android.c index 5d6f7d5ba9c4..cc4a04c1f790 100644 --- a/src/platforms/rcore_android.c +++ b/src/platforms/rcore_android.c @@ -119,7 +119,7 @@ void android_main(struct android_app *app) // Waiting for application events before complete finishing while (!app->destroyRequested) { - while ((pollResult = ALooper_pollAll(0, NULL, &pollEvents, (void **)&platform.source)) >= 0) + while ((pollResult = ALooper_pollOnce(0, NULL, &pollEvents, (void **)&platform.source)) >= 0) { if (platform.source != NULL) platform.source->process(app, platform.source); } @@ -496,7 +496,7 @@ void PollInputEvents(void) // Poll Events (registered events) // NOTE: Activity is paused if not enabled (platform.appEnabled) - while ((pollResult = ALooper_pollAll(platform.appEnabled? 0 : -1, NULL, &pollEvents, (void**)&platform.source)) >= 0) + while ((pollResult = ALooper_pollOnce(platform.appEnabled? 0 : -1, NULL, &pollEvents, (void**)&platform.source)) >= 0) { // Process this event if (platform.source != NULL) platform.source->process(platform.app, platform.source); @@ -583,7 +583,7 @@ int InitPlatform(void) while (!CORE.Window.ready) { // Process events loop - while ((pollResult = ALooper_pollAll(0, NULL, &pollEvents, (void**)&platform.source)) >= 0) + while ((pollResult = ALooper_pollOnce(0, NULL, &pollEvents, (void**)&platform.source)) >= 0) { // Process this event if (platform.source != NULL) platform.source->process(platform.app, platform.source);