Function sdl2_sys::SDL_JoystickGetAxis
source ยท pub unsafe extern "C" fn SDL_JoystickGetAxis(
joystick: *mut SDL_Joystick,
axis: c_int,
) -> Sint16
Expand description
Get the current 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.