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.