Return whether a joystick is currently connected.
Defined in <SDL3/SDL_joystick.h>
bool SDL_HasJoystick(void);
(bool) Returns true if a joystick is connected, false otherwise.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.