Function sdl2_sys::SDL_GameControllerGetAxis
source ยท pub unsafe extern "C" fn SDL_GameControllerGetAxis(
gamecontroller: *mut SDL_GameController,
axis: SDL_GameControllerAxis,
) -> Sint16
Expand description
Get the current state of an axis control on a game controller.
The state is a value ranging from -32768 to 32767 (except for the triggers, which range from 0 to 32767).
The axis indices start at index 0.