mirror of
https://github.com/encounter/SDL.git
synced 2025-12-11 06:27:44 +00:00
First pass on the new SDL sensor API
This commit is contained in:
@@ -657,6 +657,13 @@ SDL_PumpEvents(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !SDL_SENSOR_DISABLED
|
||||
/* Check for sensor state change */
|
||||
if (!SDL_disabled_events[SDL_SENSORUPDATE >> 8]) {
|
||||
SDL_SensorUpdate();
|
||||
}
|
||||
#endif
|
||||
|
||||
SDL_SendPendingQuit(); /* in case we had a signal handler fire, etc. */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user