[][src]Function sdl2_sys::SDL_JoystickGetButton

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

Get the current state of a button on a joystick.

The button indices start at index 0.