First pass at Windows sensor implementation
This commit is contained in:
parent
6e6b517789
commit
3180ba81af
17 changed files with 770 additions and 5 deletions
|
@ -39,6 +39,9 @@ static SDL_SensorDriver *SDL_sensor_drivers[] = {
|
|||
#ifdef SDL_SENSOR_COREMOTION
|
||||
&SDL_COREMOTION_SensorDriver,
|
||||
#endif
|
||||
#ifdef SDL_SENSOR_WINDOWS
|
||||
&SDL_WINDOWS_SensorDriver,
|
||||
#endif
|
||||
#if defined(SDL_SENSOR_DUMMY) || defined(SDL_SENSOR_DISABLED)
|
||||
&SDL_DUMMY_SensorDriver
|
||||
#endif
|
||||
|
@ -48,7 +51,7 @@ static SDL_bool SDL_updating_sensor = SDL_FALSE;
|
|||
static SDL_mutex *SDL_sensor_lock = NULL; /* This needs to support recursive locks */
|
||||
static SDL_atomic_t SDL_next_sensor_instance_id;
|
||||
|
||||
static void
|
||||
void
|
||||
SDL_LockSensors(void)
|
||||
{
|
||||
if (SDL_sensor_lock) {
|
||||
|
@ -56,7 +59,7 @@ SDL_LockSensors(void)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
SDL_UnlockSensors(void)
|
||||
{
|
||||
if (SDL_sensor_lock) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue