Provided by: libsdl3-doc_3.2.20+ds-2_all bug

NAME

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

SYNOPSIS

       #include <SDL3/SDL_joystick.h>

       bool SDL_GetJoystickAxisInitialState(SDL_Joystick *joystick, int axis, Sint16 *state);

DESCRIPTION

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

       The axis indices start at index 0.

FUNCTION PARAMETERS

       joystick
              an SDL_Joystick structure containing joystick information.

       axis   the axis to query; the axis indices start at index 0.

       state  upon return, the initial value is supplied here.

RETURN VALUE

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

AVAILABILITY

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                 SDL_GetJoystickAxisInitialState(3)