---
name: "SDL_SetGamepadEventsEnabled"
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_SetGamepadEventsEnabled"
---

# SDL\_SetGamepadEventsEnabled(3)

Set the state of gamepad event processing.

## NAME

SDL\_SetGamepadEventsEnabled - Set the state of gamepad event processing.

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

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

**void SDL\_SetGamepadEventsEnabled(bool enabled);**

## DESCRIPTION

If gamepad events are disabled, you must call

**SDL\_UpdateGamepads** () yourself and check the state of the gamepad when you want gamepad information.

## FUNCTION PARAMETERS

- *enabled*

  whether to process gamepad events or not.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GamepadEventsEnabled**(3)](/SDL_GamepadEventsEnabled/3.md), **•**(3), [**SDL\_UpdateGamepads**(3)](/SDL_UpdateGamepads/3.md)
