[][src]Function sdl2_sys::SDL_GameControllerGetButton

pub unsafe extern "C" fn SDL_GameControllerGetButton(
    gamecontroller: *mut SDL_GameController,
    button: SDL_GameControllerButton
) -> Uint8

Get the current state of a button on a game controller.

The button indices start at index 0.