| SDL_HasGamepad(3) | SDL3 FUNCTIONS | SDL_HasGamepad(3) |
SDL_HasGamepad - Return whether a gamepad is currently connected.
Defined in SDL3/SDL_gamepad.h
#include "SDL3/SDL.h"
bool SDL_HasGamepad(void);
Returns true if a gamepad is connected, false otherwise.
This function is available since SDL 3.2.0.
•(3), SDL_GetGamepads(3)
| SDL 3.2.10 | Simple Directmedia Layer |