SDL_HapticEffectSupported - Man Page

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), ·(3), SDL_GetHapticFeatures(3)

Referenced By

SDL_GetHapticFeatures(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS