Function fermium::joystick::SDL_JoystickGetAxis
source · pub unsafe extern "C" fn SDL_JoystickGetAxis(
joystick: *mut SDL_Joystick,
axis: c_int
) -> i16
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.