sdlOpenSensor function
Open a sensor for use.
\param instance_id the sensor instance ID. \returns an SDL_Sensor object or NULL on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Sensor * SDLCALL SDL_OpenSensor(SDL_SensorID instance_id)
Implementation
Pointer<SdlSensor> sdlOpenSensor(int instanceId) {
final sdlOpenSensorLookupFunction = libSdl3.lookupFunction<
Pointer<SdlSensor> Function(Uint32 instanceId),
Pointer<SdlSensor> Function(int instanceId)>('SDL_OpenSensor');
return sdlOpenSensorLookupFunction(instanceId);
}