SDL_HapticEffectSupported - Check to see if an effect is supported by a haptic device.
Contents
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);
