Function sdl2_sys::SDL_JoystickGetButton

source ยท
pub unsafe extern "C" fn SDL_JoystickGetButton(
    joystick: *mut SDL_Joystick,
    button: c_int,
) -> Uint8
Expand description

Get the current state of a button on a joystick.

The button indices start at index 0.