SDL 2.0
|
Go to the source code of this file.
Functions | |
SDL_SensorID | SDL_GetNextSensorInstanceID (void) |
int | SDL_SensorInit (void) |
void | SDL_SensorQuit (void) |
int | SDL_PrivateSensorUpdate (SDL_Sensor *sensor, float *data, int num_values) |
SDL_SensorID SDL_GetNextSensorInstanceID | ( | void | ) |
Definition at line 112 of file SDL_sensor.c.
References SDL_AtomicIncRef, and SDL_next_sensor_instance_id.
int SDL_PrivateSensorUpdate | ( | SDL_Sensor * | sensor, |
float * | data, | ||
int | num_values | ||
) |
Definition at line 476 of file SDL_sensor.c.
References SDL_arraysize, SDL_ENABLE, SDL_GetEventState, SDL_JOYAXISMOTION, SDL_memcpy, SDL_memset, SDL_min, SDL_PushEvent, and SDL_SENSORUPDATE.
int SDL_SensorInit | ( | void | ) |
Definition at line 69 of file SDL_sensor.c.
References i, SDL_arraysize, SDL_CreateMutex, SDL_INIT_EVENTS, SDL_InitSubSystem, SDL_sensor_drivers, and SDL_sensor_lock.
Referenced by SDL_InitSubSystem().
Definition at line 440 of file SDL_sensor.c.
References i, NULL, SDL_SensorDriver::Quit, SDL_arraysize, SDL_assert, SDL_DestroyMutex, SDL_INIT_EVENTS, SDL_LockSensors(), SDL_QuitSubSystem, SDL_sensor_drivers, SDL_sensor_lock, SDL_SensorClose(), SDL_sensors, SDL_UnlockSensors(), and SDL_updating_sensor.
Referenced by SDL_QuitSubSystem().