---
name: "SDL_GetHapticFeatures"
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_GetHapticFeatures"
---

# SDL\_GetHapticFeatures(3)

Get the haptic device's supported features in bitwise manner.

## NAME

SDL\_GetHapticFeatures - Get the haptic device's supported features in bitwise manner.

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

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

**Uint32 SDL\_GetHapticFeatures(SDL\_Haptic \*haptic);**

## FUNCTION PARAMETERS

- *haptic*

  the  **SDL\_Haptic**\
    device to query.

## RETURN VALUE

( **Uint32** ) Returns a list of supported haptic features in bitwise manner (OR'd), or 0 on failure; call  **SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_HapticEffectSupported**(3)](/SDL_HapticEffectSupported/3.md), **•**(3), [**SDL\_GetMaxHapticEffects**(3)](/SDL_GetMaxHapticEffects/3.md)
