SDL_GamepadHasButton

Query whether a gamepad has a given button.

This merely reports whether the gamepad's mapping defined this button, as that is all the information SDL has about the physical device.

extern (C) nothrow @nogc extern
bool
SDL_GamepadHasButton

Parameters

gamepad SDL_Gamepad*

a gamepad.

button SDL_GamepadButton

a button enum value (an SDL_GamepadButton value).

Return Value

Type: bool

true if the gamepad has this button, false otherwise.

See Also

Meta