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_HapticConstant - A structure containing a template for a Constant effect.

Availability

       This struct is available since SDL 3.2.0.

Description

       This struct is exclusively for the SDL_HAPTIC_CONSTANT effect.

       A constant effect applies a constant force in the specified direction to the joystick.

Name

       SDL_HapticConstant - A structure containing a template for a Constant effect.

See Also

SDL_HAPTIC_CONSTANT(3), SDL_HapticEffect(3type)

Simple Directmedia Layer                           SDL 3.2.20                          SDL_HapticConstant(3type)

Synopsis

#include<SDL3/SDL_haptic.h>typedefstructSDL_HapticConstant{/*Header*/Uint16type;/**<SDL_HAPTIC_CONSTANT*/SDL_HapticDirectiondirection;/**<Directionoftheeffect.*//*Replay*/Uint32length;/**<Durationoftheeffect.*/Uint16delay;/**<Delaybeforestartingtheeffect.*//*Trigger*/Uint16button;/**<Buttonthattriggerstheeffect.*/Uint16interval;/**<Howsoonitcanbetriggeredagainafterbutton.*//*Constant*/Sint16level;/**<Strengthoftheconstanteffect.*//*Envelope*/Uint16attack_length;/**<Durationoftheattack.*/Uint16attack_level;/**<Levelatthestartoftheattack.*/Uint16fade_length;/**<Durationofthefade.*/Uint16fade_level;/**<Levelattheendofthefade.*/}SDL_HapticConstant;

See Also