Revert changes to SDL_androidsensor.c

pull/9814/head
Anonymous Maarten 2024-05-16 16:47:25 +02:00
parent 88980aeb21
commit 027856b9fa
1 changed files with 1 additions and 3 deletions

View File

@ -69,10 +69,8 @@ static int SDLCALL SDL_ANDROID_SensorThread(void *data)
while (SDL_AtomicGet(&ctx->running)) {
Uint64 timestamp = SDL_GetTicksNS();
int poll_result;
poll_result = ALooper_pollOnce(-1, NULL, &events, (void **)&source);
if (poll_result == LOOPER_ID_USER) {
if (ALooper_pollAll(-1, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
SDL_LockSensors();
for (i = 0; i < SDL_sensors_count; ++i) {
if (!SDL_sensors[i].event_queue) {