{"id":33900047,"url":"https://github.com/thatfactory/gcoverseer","last_synced_at":"2026-02-21T15:02:23.008Z","repository":{"id":63905196,"uuid":"303807601","full_name":"thatfactory/gcoverseer","owner":"thatfactory","description":"Observe and manage game controllers using AsyncSequence 🎮","archived":false,"fork":false,"pushed_at":"2026-02-15T22:48:10.000Z","size":98,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-16T06:13:28.653Z","etag":null,"topics":["async-sequence","game-controller","game-development","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatfactory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-13T19:24:42.000Z","updated_at":"2026-02-15T22:48:13.000Z","dependencies_parsed_at":"2025-12-10T13:04:15.379Z","dependency_job_id":null,"html_url":"https://github.com/thatfactory/gcoverseer","commit_stats":null,"previous_names":["thatfactory/gcoverseer","backslash-f/gcoverseer"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/thatfactory/gcoverseer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatfactory%2Fgcoverseer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatfactory%2Fgcoverseer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatfactory%2Fgcoverseer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatfactory%2Fgcoverseer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatfactory","download_url":"https://codeload.github.com/thatfactory/gcoverseer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatfactory%2Fgcoverseer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async-sequence","game-controller","game-development","swift"],"created_at":"2025-12-11T22:59:02.232Z","updated_at":"2026-02-21T15:02:23.003Z","avatar_url":"https://github.com/thatfactory.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Swift](https://img.shields.io/badge/Swift-6.2-ea7a50.svg?logo=swift\u0026logoColor=white)](https://developer.apple.com/swift/)\n[![Xcode](https://img.shields.io/badge/Xcode-26.3-50ace8.svg?logo=xcode\u0026logoColor=white)](https://developer.apple.com/xcode/)\n[![SPM](https://img.shields.io/badge/SPM-ready-b68f6a.svg?logo=gitlfs\u0026logoColor=white)](https://developer.apple.com/documentation/xcode/swift-packages)\n[![Platforms](https://img.shields.io/badge/Platforms-iOS%20%7C%20iPadOS%20%7C%20macOS%20%7C%20Mac%20Catalyst%20%7C%20tvOS%20%7C%20visionOS-lightgrey.svg?logo=apple\u0026logoColor=white)](https://en.wikipedia.org/wiki/List_of_Apple_operating_systems)\n[![License](https://img.shields.io/badge/License-MIT-67ac5b.svg?logo=googledocs\u0026logoColor=white)](https://en.wikipedia.org/wiki/MIT_License)  \n[![CI](https://github.com/thatfactory/gcoverseer/actions/workflows/ci.yml/badge.svg)](https://github.com/thatfactory/gcoverseer/actions/workflows/ci.yml)\n[![Release](https://github.com/thatfactory/gcoverseer/actions/workflows/release.yml/badge.svg)](https://github.com/thatfactory/gcoverseer/actions/workflows/release.yml)\n\n# GCOverseer 🎮\n[AsyncSequence](https://developer.apple.com/documentation/swift/asyncsequence) wrapper around Apple's [Game Controller Framework](https://developer.apple.com/documentation/gamecontroller).\n\n## Usage Examples\n\n### Handle Controller Connection/Disconnection Events\n```swift\nimport SpriteKit\nimport GCOverseer\n\nclass GameScene: SKScene {\n\n    let gcOverseer = GCOverseer()\n\n    override init(size: CGSize) {\n        super.init(size: size)\n\n        // 🎮 Handle game controller connection/disconnection asynchronously\n        Task {\n            for await controllerEvent in gcOverseer.connectionStream {\n                switch controllerEvent {\n                case .connected:\n                    print(\"A game controller connected.\")\n                case .disconnected:\n                    print(\"A game controller disconnected.\")\n                }\n            }\n        }\n    }\n}\n```\n## Available Properties\nProperty | Description\n-------- | -----------\n`var connectionStream: AsyncStream\u003cGameControllerEvent\u003e` | Provides an `AsyncSequence` for observing connect/disconnect events of game controllers.\n`var controllers: [GCController]` | Returns all controllers connected to the device. E.g. *DualShock*, *Xbox*, *Siri Remote* controllers, etc.\n\n## Available APIs\nAPI | Description\n--- | -----------\n`extendedGamepadControllers()` | Returns all controllers supporting the `extendedGamepad` profile connected to the device. E.g., *DualShock*, *Xbox* controllers, etc.\n`dualShockControllers()` | Returns all *DualShock* controllers that are connected to the device.\n`dualSenseControllers()` | Returns all *DualSense* controllers that are connected to the device.\n`xboxControllers()` | Returns all *Xbox* controllers that are connected to the device.\n`microGamepadControllers()` | Returns all controllers supporting the `microGamepad` profile connected to the device. E.g. Apple's *Siri Remote*.\n`motionControllers()` | Returns all controllers supporting the `motion` profile connected to the device.\n`controllerFor(playerIndex:)` | Returns the controller for the player 1, player 2, etc.\n`enableLogging() / disableLogging()` | Enables/disables logging output.\n\n## Integration\n### Xcode\nUse Xcode's [built-in support for SPM](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).\n\n*or...*\n\n### Package.swift\nIn your `Package.swift`, add `GCOverseer` as a dependency:\n```swift\ndependencies: [\n    .package(\n        url: \"https://github.com/thatfactory/gcoverseer\",\n        from: \"0.1.0\"\n    )\n]\n```\n\nAssociate the dependency with your target:\n```swift\ntargets: [\n    .target(\n        name: \"YourTarget\",\n        dependencies: [\n            .product(\n                name: \"GCOverseer\",\n                package: \"gcoverseer\"\n            )\n        ]\n    )\n]\n```\n\nRun: `swift build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatfactory%2Fgcoverseer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatfactory%2Fgcoverseer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatfactory%2Fgcoverseer/lists"}