Go to the source code of this file.
§ SDL_GetNextSensorInstanceID()
Definition at line 112 of file SDL_sensor.c.
References SDL_AtomicIncRef.
static SDL_atomic_t SDL_next_sensor_instance_id
#define SDL_AtomicIncRef(a)
Increment an atomic variable used as a reference count.
§ SDL_PrivateSensorUpdate()
int SDL_PrivateSensorUpdate |
( |
SDL_Sensor * |
sensor, |
|
|
float * |
data, |
|
|
int |
num_values |
|
) |
| |
Definition at line 476 of file SDL_sensor.c.
References SDL_SensorEvent::data, SDL_arraysize, SDL_ENABLE, SDL_GetEventState, SDL_JOYAXISMOTION, SDL_memcpy, SDL_memset, SDL_min, SDL_PushEvent, SDL_SENSORUPDATE, and SDL_Event::sensor.
488 #if !SDL_EVENTS_DISABLED 492 event.sensor.which = sensor->instance_id;
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define SDL_GetEventState(type)
#define SDL_arraysize(array)
§ SDL_SensorInit()
int SDL_SensorInit |
( |
void |
| ) |
|
Definition at line 69 of file SDL_sensor.c.
References i, SDL_arraysize, SDL_CreateMutex, SDL_INIT_EVENTS, and SDL_InitSubSystem.
Referenced by SDL_InitSubSystem().
78 #if !SDL_EVENTS_DISABLED
static SDL_mutex * SDL_sensor_lock
#define SDL_InitSubSystem
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
static SDL_SensorDriver * SDL_sensor_drivers[]
#define SDL_arraysize(array)
§ SDL_SensorQuit()
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_SensorClose(), SDL_sensors, SDL_UnlockSensors(), and SDL_updating_sensor.
Referenced by SDL_QuitSubSystem().
462 #if !SDL_EVENTS_DISABLED
static SDL_mutex * SDL_sensor_lock
#define SDL_QuitSubSystem
void SDL_SensorClose(SDL_Sensor *sensor)
static void SDL_LockSensors(void)
static SDL_bool SDL_updating_sensor
static SDL_Sensor * SDL_sensors
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
#define SDL_assert(condition)
static SDL_SensorDriver * SDL_sensor_drivers[]
static void SDL_UnlockSensors(void)
#define SDL_arraysize(array)