sdlGetSensorProperties function
Get the properties associated with a sensor.
\param sensor the SDL_Sensor object. \returns a valid property ID on success or 0 on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetSensorProperties(SDL_Sensor *sensor)
Implementation
int sdlGetSensorProperties(Pointer<SdlSensor> sensor) {
final sdlGetSensorPropertiesLookupFunction = libSdl3.lookupFunction<
Uint32 Function(Pointer<SdlSensor> sensor),
int Function(Pointer<SdlSensor> sensor)>('SDL_GetSensorProperties');
return sdlGetSensorPropertiesLookupFunction(sensor);
}