---
name: "SDL_HapticEffectSupported"
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_HapticEffectSupported"
---

# SDL\_HapticEffectSupported(3)

Check to see if an effect is supported by a haptic device.

## NAME

SDL\_HapticEffectSupported - Check to see if an effect is supported by a haptic device.

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

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

**bool SDL\_HapticEffectSupported(SDL\_Haptic \*haptic, const SDL\_HapticEffect \*effect);**

## FUNCTION PARAMETERS

- *haptic*

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

- *effect*

  the desired effect to query.

## RETURN VALUE

Returns true if the effect is supported or false if it isn't.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateHapticEffect**(3)](/SDL_CreateHapticEffect/3.md), **•**(3), [**SDL\_GetHapticFeatures**(3)](/SDL_GetHapticFeatures/3.md)
