---
name: "SDL_SetJoystickEventsEnabled"
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_SetJoystickEventsEnabled"
---

# SDL\_SetJoystickEventsEnabled(3)

Set the state of joystick event processing.

## NAME

SDL\_SetJoystickEventsEnabled - Set the state of joystick event processing.

## HEADER FILE

Defined in SDL3/SDL\_joystick.h

## SYNOPSIS

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

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

## DESCRIPTION

If joystick events are disabled, you must call

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

## FUNCTION PARAMETERS

- *enabled*

  whether to process joystick events or not.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_JoystickEventsEnabled**(3)](/SDL_JoystickEventsEnabled/3.md), **•**(3), [**SDL\_UpdateJoysticks**(3)](/SDL_UpdateJoysticks/3.md)
