---
name: "SDL_HapticLeftRight"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HapticLeftRight"
---

# SDL\_HapticLeftRight(3type)

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

## NAME

SDL\_HapticLeftRight - A structure containing a template for a Left/Right effect.

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_HapticLeftRight** **{**     **/\* Header \*/**     **Uint16 type;            /\*\*\< SDL\_HAPTIC\_LEFTRIGHT \*/**     **/\* Replay \*/**     **Uint32 length;          /\*\*\< Duration of the effect in milliseconds. \*/**     **/\* Rumble \*/**     **Uint16 large\_magnitude; /\*\*\< Control of the large controller motor. \*/**     **Uint16 small\_magnitude; /\*\*\< Control of the small controller motor. \*/** **} SDL\_HapticLeftRight;**

## 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.

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_HAPTIC\_LEFTRIGHT**(3)](/SDL_HAPTIC_LEFTRIGHT/3.md), **•**(3), [**SDL\_HapticEffect**(3type)](/SDL_HapticEffect/3type.md)
