---
name: "SDL_GetGamepadProperties"
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_GetGamepadProperties"
---

# SDL\_GetGamepadProperties(3)

Get the properties associated with an opened gamepad.

## NAME

SDL\_GetGamepadProperties - Get the properties associated with an opened gamepad.

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

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

**SDL\_PropertiesID SDL\_GetGamepadProperties(SDL\_Gamepad \*gamepad);**

## DESCRIPTION

These properties are shared with the underlying joystick object.

The following read-only properties are provided by SDL:

•  **SDL\_PROP\_GAMEPAD\_CAP\_MONO\_LED\_BOOLEAN** :\
   true if this gamepad has an LED that has adjustable brightness

•  **SDL\_PROP\_GAMEPAD\_CAP\_RGB\_LED\_BOOLEAN** :\
   true if this gamepad has an LED that has adjustable color

•  **SDL\_PROP\_GAMEPAD\_CAP\_PLAYER\_LED\_BOOLEAN** :\
   true if this gamepad has a player LED

•  **SDL\_PROP\_GAMEPAD\_CAP\_RUMBLE\_BOOLEAN** :\
   true if this gamepad has left/right rumble

•  **SDL\_PROP\_GAMEPAD\_CAP\_TRIGGER\_RUMBLE\_BOOLEAN** :\
   true if this gamepad has simple trigger rumble

## FUNCTION PARAMETERS

- *gamepad*

  a gamepad identifier previously returned by  **SDL\_OpenGamepad** ().

## RETURN VALUE

( **SDL\_PropertiesID** ) Returns a valid property ID on success or 0 on failure; call  **SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.
