Get the data rate (number of events per second) of a joystick sensor.
Defined in <SDL3/SDL_joystick.h>
float SDL_GetJoystickSensorDataRate(SDL_Joystick *joystick, SDL_SensorType type);| SDL_Joystick * | joystick | the joystick to query. |
| SDL_SensorType | type | the type of sensor to query. |
(float) Returns the data rate, or 0.0f if the data rate is not available.
It is safe to call this function from any thread.
This function is available since SDL 3.6.0.