logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Function Parameters

haptic the SDL_Haptic
               device to query.

       effect the desired effect to query.

Header File

       Defined in SDL3/SDL_haptic.h

Name

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

Return Value

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

See Also

(3), SDL_CreateHapticEffect(3), (3), SDL_GetHapticFeatures(3)

Simple Directmedia Layer                           SDL 3.2.10                       SDL_HapticEffectSupported(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_HapticEffectSupported(SDL_Haptic*haptic,constSDL_HapticEffect*effect);

See Also