SDL_GetJoystickAxisInitialState

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

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

The axis indices start at index 0.

extern (C) nothrow @nogc extern
bool
SDL_GetJoystickAxisInitialState

Parameters

joystick SDL_Joystick*

an SDL_Joystick structure containing joystick information.

axis int

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

state Sint16*

upon return, the initial value is supplied here.

Return Value

Type: bool

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

Meta