---
name: "SDL_JoystickEventsEnabled"
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_JoystickEventsEnabled"
---

# SDL\_JoystickEventsEnabled(3)

Query the state of joystick event processing.

## NAME

SDL\_JoystickEventsEnabled - Query the state of joystick event processing.

## HEADER FILE

Defined in SDL3/SDL\_joystick.h

## SYNOPSIS

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

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

## DESCRIPTION

If joystick events are disabled, you must call

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

## RETURN VALUE

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

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_SetJoystickEventsEnabled**(3)](/SDL_SetJoystickEventsEnabled/3.md)
