sdlHasGamepad function
Return whether a gamepad is currently connected.
\returns true if a gamepad is connected, false otherwise.
\since This function is available since SDL 3.1.3.
\sa SDL_GetGamepads
extern SDL_DECLSPEC bool SDLCALL SDL_HasGamepad(void)
Implementation
bool sdlHasGamepad() {
final sdlHasGamepadLookupFunction = libSdl3
.lookupFunction<Uint8 Function(), int Function()>('SDL_HasGamepad');
return sdlHasGamepadLookupFunction() == 1;
}