Use this function to check if a controller has been opened and is currently connected.
SDL_bool SDL_GameControllerGetAttached(SDL_GameController* gamecontroller)
a game controller identifier previously returned by SDL_GameControllerOpen()
Returns SDL_TRUE if the controller has been opened and currently connected, or SDL_FALSE if it has not.
You can add your code example here
You can add useful comments here