SDL_GetGamepadButton3
Get the current state of a button on a gamepad.
Usage
#include "SDL3/SDL.h"
bool SDL_GetGamepadButton(SDL_Gamepad *gamepad, SDL_GamepadButton button);
Header file
Defined in SDL3/SDL_gamepad.h
Function parameters
gamepad
|
a gamepad. |
|---|---|
button
|
a button index (one of the |
Return value
Returns true if the button is pressed, false otherwise.