/* Return if the controller in question is currently attached to the system,  */
SDL_bool SDL_GameControllerGetAttached(SDL_GameController *gamecontroller)
/* Return if the controller in question is currently attached to the system,  */
SDL_bool SDL_GameControllerGetAttached(SDL_GameController *gamecontroller)
{
    if (!gamecontroller)
        return SDL_FALSE;
    return SDL_JoystickGetAttached(gamecontroller->joystick);
}