Get the data rate (number of events per second) of a game controller sensor.
Defined in SDL_gamecontroller.h
float SDL_GameControllerGetSensorDataRate(SDL_GameController *gamecontroller, SDL_SensorType type);
SDL_GameController * | gamecontroller | The controller to query. |
SDL_SensorType | type | The type of sensor to query. |
(float) Return the data rate, or 0.0f if the data rate is not available.
This function is available since SDL 2.0.16.