mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-08 04:18:14 +00:00
First pass at Windows sensor implementation
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user