Searched refs:SDL_sensors (Results 1 – 4 of 4) sorted by relevance
63 static SDL_Windows_Sensor *SDL_sensors; variable139 if (pSensor == SDL_sensors[i].sensor) { in ISensorEventsVtbl_OnStateChanged()154 if (pSensor == SDL_sensors[i].sensor) { in ISensorEventsVtbl_OnDataUpdated()155 if (SDL_sensors[i].sensor_opened) { in ISensorEventsVtbl_OnDataUpdated()162 switch (SDL_sensors[i].type) { in ISensorEventsVtbl_OnDataUpdated()303 SDL_sensors = new_sensors; in ConnectSensor()325 old_sensor = &SDL_sensors[i]; in DisconnectSensor()332 … SDL_memmove(&SDL_sensors[i], &SDL_sensors[i + 1], (SDL_num_sensors - i) * sizeof(SDL_sensors[i])); in DisconnectSensor()403 return SDL_sensors[device_index].name; in SDL_WINDOWS_SensorGetDeviceName()409 return SDL_sensors[device_index].type; in SDL_WINDOWS_SensorGetDeviceType()[all …]
49 static SDL_AndroidSensor *SDL_sensors; variable74 SDL_sensors = (SDL_AndroidSensor *)SDL_calloc(sensors_count, sizeof(*SDL_sensors)); in SDL_ANDROID_SensorInit()75 if (!SDL_sensors) { in SDL_ANDROID_SensorInit()80 SDL_sensors[i].asensor = sensors[i]; in SDL_ANDROID_SensorInit()102 return ASensor_getName(SDL_sensors[device_index].asensor); in SDL_ANDROID_SensorGetDeviceName()121 return ASensor_getType(SDL_sensors[device_index].asensor); in SDL_ANDROID_SensorGetDeviceNonPortableType()127 return SDL_sensors[device_index].instance_id; in SDL_ANDROID_SensorGetDeviceInstanceID()141 hwdata->asensor = SDL_sensors[device_index].asensor; in SDL_ANDROID_SensorOpen()196 if (SDL_sensors) { in SDL_ANDROID_SensorQuit()197 SDL_free(SDL_sensors); in SDL_ANDROID_SensorQuit()[all …]
49 static SDL_Sensor *SDL_sensors = NULL; variable233 sensorlist = SDL_sensors; in SDL_SensorOpen()276 sensor->next = SDL_sensors; in SDL_SensorOpen()277 SDL_sensors = sensor; in SDL_SensorOpen()295 for (sensor = SDL_sensors; sensor; sensor = sensor->next) { in SDL_SensorFromInstanceID()418 sensorlist = SDL_sensors; in SDL_SensorClose()426 SDL_sensors = sensor->next; in SDL_SensorClose()453 while (SDL_sensors) { in SDL_SensorQuit()454 SDL_sensors->ref_count = 1; in SDL_SensorQuit()455 SDL_SensorClose(SDL_sensors); in SDL_SensorQuit()[all …]
42 static SDL_CoreMotionSensor *SDL_sensors;62 SDL_sensors = (SDL_CoreMotionSensor *)SDL_calloc(sensors_count, sizeof(*SDL_sensors));63 if (!SDL_sensors) {69 SDL_sensors[i].type = SDL_SENSOR_ACCEL;70 SDL_sensors[i].instance_id = SDL_GetNextSensorInstanceID();74 SDL_sensors[i].type = SDL_SENSOR_GYRO;75 SDL_sensors[i].instance_id = SDL_GetNextSensorInstanceID();97 switch (SDL_sensors[device_index].type) {110 return SDL_sensors[device_index].type;116 return SDL_sensors[device_index].type;[all …]
Completed in 12 milliseconds