{"id":17201582,"url":"https://github.com/kyome22/openmultitouchsupport","last_synced_at":"2025-07-31T02:34:05.578Z","repository":{"id":62449720,"uuid":"196433398","full_name":"Kyome22/OpenMultitouchSupport","owner":"Kyome22","description":"This enables you easily to access raw data of the multitouch trackpad.","archived":false,"fork":false,"pushed_at":"2025-01-13T06:29:07.000Z","size":212,"stargazers_count":37,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T17:41:45.933Z","etag":null,"topics":["macos","objective-c","swift"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/Kyome22.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}},"created_at":"2019-07-11T16:53:36.000Z","updated_at":"2025-02-21T14:13:18.000Z","dependencies_parsed_at":"2024-03-01T19:51:51.138Z","dependency_job_id":"f86e5591-0e33-407f-afd8-c1443ff06a96","html_url":"https://github.com/Kyome22/OpenMultitouchSupport","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyome22%2FOpenMultitouchSupport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyome22%2FOpenMultitouchSupport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyome22%2FOpenMultitouchSupport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyome22%2FOpenMultitouchSupport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kyome22","download_url":"https://codeload.github.com/Kyome22/OpenMultitouchSupport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248768021,"owners_count":21158573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["macos","objective-c","swift"],"created_at":"2024-10-15T02:12:13.167Z","updated_at":"2025-04-13T19:32:11.547Z","avatar_url":"https://github.com/Kyome22.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenMultitouchSupport\n\nThis enables you easily to observe global multitouch events on the trackpad (only default device).  \nI created this library to make MultitouchSupport.framework (Private Framework) easy to use.\n\n## References\n\nThis library refers the following frameworks very much. Special Thanks!\n\n- [mhuusko5/M5MultitouchSupport](https://github.com/mhuusko5/M5MultitouchSupport)\n- [calftrail/Touch](https://github.com/calftrail/Touch/blob/master/TouchSynthesis/MultitouchSupport.h)\n\n## Requirements\n\n- Development with Xcode 16.0+\n- swift-tools-version: 6.0\n- Compatible with macOS 13.0+\n\n## Demo\n\n\u003cimg src=\"Screenshots/demo.png\" alt=\"demo\" width=\"632px\" /\u003e\n\n## Usage\n\nApp SandBox must be disabled to use OpenMultitouchSupport.\n\n```swift\nimport OpenMultitouchSupport\n\nlet manager = OMSManager.shared()\n\nTask { [weak self, manager] in\n    for await touchData in manager.touchDataStream {\n        // use touchData\n    }\n}\n\nmanager.startListening()\nmanager.stopListening()\n```\n\n### The data you can get are as follows\n\n```swift\nstruct OMSPosition: Sendable {\n    var x: Float\n    var y: Float\n}\n\nstruct OMSAxis: Sendable {\n    var major: Float\n    var minor: Float\n}\n\nenum OMSState: String, Sendable {\n    case notTouching\n    case starting\n    case hovering\n    case making\n    case touching\n    case breaking\n    case lingering\n    case leaving\n}\n\nstruct OMSTouchData: Sendable {\n    var id: Int32\n    var position: OMSPosition\n    var total: Float // total value of capacitance\n    var pressure: Float\n    var axis: OMSAxis\n    var angle: Float // finger angle\n    var density: Float // area density of capacitance\n    var state: OMSState\n    var timestamp: String\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyome22%2Fopenmultitouchsupport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyome22%2Fopenmultitouchsupport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyome22%2Fopenmultitouchsupport/lists"}