---
name: "SDL_JoystickUpdate"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_JoystickUpdate"
---

# SDL\_JoystickUpdate(3)

Updates the state of all joysticks

## NAME

SDL\_JoystickUpdate - Updates the state of all joysticks

## SYNOPSIS

**#include "SDL.h"**

**void SDL\_JoystickUpdate**(**void**);

## DESCRIPTION

Updates the state(position, buttons, etc.) of all open joysticks. If joystick events have been enabled with **SDL\_JoystickEventState** then this is called automatically in the event loop.

## SEE ALSO

**SDL\_JoystickEventState**
