Function fermium::gamecontroller::SDL_GameControllerGetButton [−][src]
pub unsafe extern "C" fn SDL_GameControllerGetButton(
gamecontroller: *mut SDL_GameController,
button: SDL_GameControllerButton
) -> u8
Get the current state of a button on a game controller.
The button indices start at index 0.