DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetJoystickAxisInitialState.3.en
SDL_GetJoystickAxisInitialState(3) SDL3 FUNCTIONS SDL_GetJoystickAxisInitialState(3)

SDL_GetJoystickAxisInitialState - Get the initial state of an axis control on a joystick.

Defined in SDL3/SDL_joystick.h

#include "SDL3/SDL.h"
bool SDL_GetJoystickAxisInitialState(SDL_Joystick *joystick, int axis, Sint16 *state);

The state is a value ranging from -32768 to 32767.

The axis indices start at index 0.

an SDL_Joystick
structure containing joystick information.
the axis to query; the axis indices start at index 0.
upon return, the initial value is supplied here.

Returns true if this axis has any initial value, or false if not.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer