---
name: "SDL_HINT_AUTO_UPDATE_JOYSTICKS"
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_HINT_AUTO_UPDATE_JOYSTICKS"
---

# SDL\_HINT\_AUTO\_UPDATE\_JOYSTICKS(3)

A variable controlling whether SDL updates joystick state when getting input events.

## NAME

SDL\_HINT\_AUTO\_UPDATE\_JOYSTICKS - A variable controlling whether SDL updates joystick state when getting input events.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

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

**#define SDL\_HINT\_AUTO\_UPDATE\_JOYSTICKS** *SDL\_AUTO\_UPDATE\_JOYSTICKS"*

## DESCRIPTION

The variable can be set to the following values:

• "0": You'll call  **SDL\_UpdateJoysticks** () manually.

• "1": SDL will automatically call

**SDL\_UpdateJoysticks** (). (default)

This hint can be set anytime.

## AVAILABILITY

This hint is available since SDL 3.2.0.
