Scroll to navigation

SDL_UpdateJoysticks(3) SDL3 FUNCTIONS SDL_UpdateJoysticks(3)

NAME

SDL_UpdateJoysticks - 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 and SDL_HINT_AUTO_UPDATE_JOYSTICKS hasn't been set to "0".

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.2.0.

SDL 3.5.0 Simple Directmedia Layer