SDL_HapticEffectSupported(3)

SDL_HapticEffectSupported3

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

Usage

#include "SDL3/SDL.h"

bool SDL_HapticEffectSupported(SDL_Haptic *haptic, const SDL_HapticEffect *effect);

Header file

Defined in SDL3/SDL_haptic.h

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.

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