Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_GetMaxHapticEffects - Get the number of effects a haptic device can store.

Availability

       This function is available since SDL 3.2.0.

Description

       On  some  platforms this isn't fully supported, and therefore is an approximation. Always check to see if
       your created effect was actually created and do not rely solely on

       SDL_GetMaxHapticEffects ().

Function Parameters

haptic the SDL_Haptic
               device to query.

Header File

       Defined in SDL3/SDL_haptic.h

Name

       SDL_GetMaxHapticEffects - Get the number of effects a haptic device can store.

Return Value

       Returns the number of effects the haptic device can store or a  negative  error  code  on  failure;  call
       SDL_GetError () for more information.

See Also

(3), SDL_GetMaxHapticEffectsPlaying(3), (3), SDL_GetHapticFeatures(3)

Simple Directmedia Layer                           SDL 3.2.10                         SDL_GetMaxHapticEffects(3)

Synopsis

#include"SDL3/SDL.h"intSDL_GetMaxHapticEffects(SDL_Haptic*haptic);

See Also