SDL_UpdateJoysticks - Man Page

Update the current state of the open joysticks.

Synopsis

#include <SDL3/SDL_joystick.h>

void SDL_UpdateJoysticks(void);

Description

This is called automatically by the event loop if any joystick events are enabled.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

Referenced By

SDL_SetJoystickEventsEnabled(3).

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS