attached property

bool attached

Return true if this controller is open and attached.

SDL Docs

Implementation

bool get attached =>
    sdl.getBool(sdl.sdl.SDL_GameControllerGetAttached(handle));