Actually make the sensors magical!

This commit is contained in:
Sam Lantinga committed 2023-08-08 22:34:41 -07:00
1 parent 690eae7d22
commit d9f09e77f2
1 file changed
+1
+1
View File
@@ -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);