SDL_GetJoystickButton3
Get the current state of a button on a joystick.
Usage
#include "SDL3/SDL.h"
bool SDL_GetJoystickButton(SDL_Joystick *joystick, int button);
Header file
Defined in SDL3/SDL_joystick.h
Function parameters
joystick
|
an |
|---|---|
button
|
the button index to get the state from; indices start at index 0. |
Return value
Returns true if the button is pressed, false otherwise.