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

# SDL\_RumbleGamepad(3)

Start a rumble effect on a gamepad.

## NAME

SDL\_RumbleGamepad - Start a rumble effect on a gamepad.

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

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

**bool SDL\_RumbleGamepad(SDL\_Gamepad \*gamepad, Uint16 low\_frequency\_rumble, Uint16 high\_frequency\_rumble, Uint32 duration\_ms);**

## DESCRIPTION

Each call to this function cancels any previous rumble effect, and calling it with 0 intensity stops any rumbling.

This function requires you to process SDL events or call

**SDL\_UpdateJoysticks** () to update rumble state.

## FUNCTION PARAMETERS

- *gamepad*

  the gamepad to vibrate.

- *low\_frequency\_rumble*

  the intensity of the low frequency (left) rumble motor, from 0 to 0xFFFF.

- *high\_frequency\_rumble*

  the intensity of the high frequency (right) rumble motor, from 0 to 0xFFFF.

- *duration\_ms*

  the duration of the rumble effect, in milliseconds.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.
