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