First pass on the new SDL sensor API

This commit is contained in:
Sam Lantinga
2018-08-21 12:11:34 -07:00
parent c2791fc60d
commit 7c3040e08a
26 changed files with 1407 additions and 3 deletions

View File

@@ -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. */
}