mirror of https://github.com/libsdl-org/SDL.git
Revert changes to SDL_androidsensor.c
parent
88980aeb21
commit
027856b9fa
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue