This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki


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


SDL_bool SDL_JoystickGetAxisInitialState(SDL_Joystick *joystick,
                           int axis, Sint16 *state);

Function Parameters


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.

Return Value

Return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.


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

The axis indices start at index 0.


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.