---
name: "SDL_GetGamepadSensorDataRate"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetGamepadSensorDataRate"
---

# SDL\_GetGamepadSensorDataRate(3)

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

## NAME

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

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**float SDL\_GetGamepadSensorDataRate(SDL\_Gamepad \*gamepad, SDL\_SensorType type);**

## 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.
