sdlGetSensorId function
Get the instance ID of a sensor.
\param sensor the SDL_Sensor object to inspect. \returns the sensor instance ID, or 0 on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_SensorID SDLCALL SDL_GetSensorID(SDL_Sensor *sensor)
Implementation
int sdlGetSensorId(Pointer<SdlSensor> sensor) {
final sdlGetSensorIdLookupFunction = libSdl3.lookupFunction<
Uint32 Function(Pointer<SdlSensor> sensor),
int Function(Pointer<SdlSensor> sensor)>('SDL_GetSensorID');
return sdlGetSensorIdLookupFunction(sensor);
}