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