mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Actually make the sensors magical!
This commit is contained in:
@@ -344,6 +344,7 @@ SDL_Sensor *SDL_OpenSensor(SDL_SensorID instance_id)
|
||||
SDL_UnlockSensors();
|
||||
return NULL;
|
||||
}
|
||||
sensor->magic = &SDL_sensor_magic;
|
||||
sensor->driver = driver;
|
||||
sensor->instance_id = instance_id;
|
||||
sensor->type = driver->GetDeviceType(device_index);
|
||||
|
Reference in New Issue
Block a user