Function SDL_GetGamepadButton

pub unsafe extern "C" fn SDL_GetGamepadButton(
    gamepad: *mut SDL_Gamepad,
    button: SDL_GamepadButton,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Get the current state of a button on a gamepad.

§Parameters

§Return value

Returns true if the button is pressed, false otherwise.

§Availability

This function is available since SDL 3.2.0.

§See also