sdlGetSensorFromId function
Return the SDL_Sensor associated with an instance ID.
\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_GetSensorFromID(SDL_SensorID instance_id)
Implementation
Pointer<SdlSensor> sdlGetSensorFromId(int instanceId) {
final sdlGetSensorFromIdLookupFunction = libSdl3.lookupFunction<
Pointer<SdlSensor> Function(Uint32 instanceId),
Pointer<SdlSensor> Function(int instanceId)>('SDL_GetSensorFromID');
return sdlGetSensorFromIdLookupFunction(instanceId);
}