---
name: "SDL_GamepadEventsEnabled"
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_GamepadEventsEnabled"
---

# SDL\_GamepadEventsEnabled(3)

Query the state of gamepad event processing.

## NAME

SDL\_GamepadEventsEnabled - Query the state of gamepad event processing.

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

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

**bool SDL\_GamepadEventsEnabled(void);**

## DESCRIPTION

If gamepad events are disabled, you must call

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

## RETURN VALUE

Returns true if gamepad events are being processed, false otherwise.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_SetGamepadEventsEnabled**(3)](/SDL_SetGamepadEventsEnabled/3.md)
