getSensorDataRate method
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 getSensorDataRate(int type) {
return sdlGetGamepadSensorDataRate(this, type);
}