Get the initial state of an axis control on a joystick.
Defined in <SDL3/SDL_joystick.h>
bool SDL_GetJoystickAxisInitialState(SDL_Joystick *joystick, int axis, Sint16 *state);
SDL_Joystick * | joystick | an SDL_Joystick structure containing joystick information. |
int | axis | the axis to query; the axis indices start at index 0. |
Sint16 * | state | upon return, the initial value is supplied here. |
(bool) Returns true if this axis has any initial value, or false if not.
The state is a value ranging from -32768 to 32767.
The axis indices start at index 0.
This function is available since SDL 3.1.3.