table of contents
other versions
- experimental 3.5~git20261003~f48181f+ds-1
| SDL_GetJoystickSensorDataRate(3) | SDL3 FUNCTIONS | SDL_GetJoystickSensorDataRate(3) |
NAME¶
SDL_GetJoystickSensorDataRate - Get the data rate (number of events per second) of a joystick sensor.
SYNOPSIS¶
#include <SDL3/SDL_joystick.h>
float SDL_GetJoystickSensorDataRate(SDL_Joystick *joystick, SDL_SensorType type);
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns the data rate, or 0.0f if the data rate is not available.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL 3.6.0.
| SDL 3.5.0 | Simple Directmedia Layer |