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_HapticLeftRight - A structure containing a template for a Left/Right effect.

Availability

       This struct is available since SDL 3.2.0.

Description

       This struct is exclusively for the

       SDL_HAPTIC_LEFTRIGHT
        effect.

       The  Left/Right effect is used to explicitly control the large and small motors, commonly found in modern
       game controllers. The small (right) motor is high frequency, and the large (left) motor is low frequency.

Header File

       Defined in SDL3/SDL_haptic.h

Name

       SDL_HapticLeftRight - A structure containing a template for a Left/Right effect.

See Also

(3), SDL_HAPTIC_LEFTRIGHT(3), (3), SDL_HapticEffect(3type)

Simple Directmedia Layer                           SDL 3.2.10                         SDL_HapticLeftRight(3type)

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_HapticLeftRight{/*Header*/Uint16type;/**<SDL_HAPTIC_LEFTRIGHT*//*Replay*/Uint32length;/**<Durationoftheeffectinmilliseconds.*//*Rumble*/Uint16large_magnitude;/**<Controlofthelargecontrollermotor.*/Uint16small_magnitude;/**<Controlofthesmallcontrollermotor.*/}SDL_HapticLeftRight;

See Also