A structure containing a template for a Left/Right effect.
Defined in <SDL3/SDL_haptic.h>
typedef struct SDL_HapticLeftRight
{/* Header */
/**< SDL_HAPTIC_LEFTRIGHT */
Uint16 type;
/* Replay */
/**< Duration of the effect in milliseconds. */
Uint32 length;
/* Rumble */
/**< Control of the large controller motor. */
Uint16 large_magnitude; /**< Control of the small controller motor. */
Uint16 small_magnitude; } SDL_HapticLeftRight;
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.
This struct is available since SDL 3.1.3.