Man page - sdl_getgamepadsensordatarate(3)

Packages contas this manual

Manual

SDL_GetGamepadSensorDataRate(3) SDL3 FUNCTIONS SDL_GetGamepadSensorDataRate(3)

SDL_GetGamepadSensorDataRate - Get the data rate (number of events per second) of a gamepad sensor.

Defined in SDL3/SDL_gamepad.h

#include "SDL3/SDL.h"
float SDL_GetGamepadSensorDataRate(SDL_Gamepad *gamepad, SDL_SensorType type);

the gamepad to query.
the type of sensor to query.

Returns the data rate, or 0.0f if the data rate is not available.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer