SDL_GetGamepadSensorDataRate(3)

SDL_GetGamepadSensorDataRate3

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

Usage

#include "SDL3/SDL.h"

float SDL_GetGamepadSensorDataRate(SDL_Gamepad *gamepad, SDL_SensorType type);

Header file

Defined in SDL3/SDL_gamepad.h

Function parameters

gamepad

the gamepad to query.

type

the type of sensor to query.

Return value

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

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.