SDL_GetJoystickAxisInitialState - Get the initial state of an axis control on a joystick.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_GetJoystickAxisInitialState(3)
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.
Header File
Defined in SDL3/SDL_joystick.h
Name
SDL_GetJoystickAxisInitialState - Get the initial state of an axis control on a joystick.
Return Value
Returns true if this axis has any initial value, or false if not.
Synopsis
#include"SDL3/SDL.h"boolSDL_GetJoystickAxisInitialState(SDL_Joystick*joystick,intaxis,Sint16*state);
