sdlGetGamepadSensorDataRate function
Get the data rate (number of events per second) of a gamepad sensor.
\param gamepad the gamepad to query. \param type the type of sensor to query. \returns the data rate, or 0.0f if the data rate is not available.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC float SDLCALL SDL_GetGamepadSensorDataRate(SDL_Gamepad *gamepad, SDL_SensorType type)
Implementation
double sdlGetGamepadSensorDataRate(Pointer<SdlGamepad> gamepad, int type) {
final sdlGetGamepadSensorDataRateLookupFunction = libSdl3.lookupFunction<
Float Function(Pointer<SdlGamepad> gamepad, Int32 type),
double Function(Pointer<SdlGamepad> gamepad,
int type)>('SDL_GetGamepadSensorDataRate');
return sdlGetGamepadSensorDataRateLookupFunction(gamepad, type);
}