logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                    SDL_GetGamepadSensorDataRate(3)

Function Parameters

gamepad
              the gamepad to query.

       type   the type of sensor to query.

Header File

       Defined in SDL3/SDL_gamepad.h

Name

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

Return Value

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

Synopsis

#include"SDL3/SDL.h"floatSDL_GetGamepadSensorDataRate(SDL_Gamepad*gamepad,SDL_SensorTypetype);

See Also