SDL_GetGamepadButton

Get the current state of a button on a gamepad.

extern (C) nothrow @nogc extern
bool
SDL_GetGamepadButton

Parameters

gamepad SDL_Gamepad*

a gamepad.

button SDL_GamepadButton

a button index (one of the SDL_GamepadButton values).

Return Value

Type: bool

true if the button is pressed, false otherwise.

See Also

Meta