| SDL_GetJoystickButton(3) | SDL3 FUNCTIONS | SDL_GetJoystickButton(3) |
SDL_GetJoystickButton - Get the current state of a button on a joystick.
Defined in SDL3/SDL_joystick.h
#include "SDL3/SDL.h"
bool SDL_GetJoystickButton(SDL_Joystick *joystick, int button);
Returns true if the button is pressed, false otherwise.
This function is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |