{"id":18430007,"url":"https://github.com/kevinw/trackpadtouch","last_synced_at":"2026-02-20T19:33:23.630Z","repository":{"id":60354242,"uuid":"524600911","full_name":"kevinw/trackpadtouch","owner":"kevinw","description":"Reads multitouch input from your trackpad, giving it to your Unity game with an interface matching Input.touches.","archived":false,"fork":false,"pushed_at":"2023-09-26T13:25:46.000Z","size":378,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T17:42:04.905Z","etag":null,"topics":["game-development","input","multitouch","unity","unity3d"],"latest_commit_sha":null,"homepage":"https://kev.town/trackpadtouch/","language":"Objective-C","has_issues":false,"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/kevinw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-08-14T07:19:46.000Z","updated_at":"2025-02-10T02:17:02.000Z","dependencies_parsed_at":"2025-04-07T17:48:36.342Z","dependency_job_id":null,"html_url":"https://github.com/kevinw/trackpadtouch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinw/trackpadtouch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Ftrackpadtouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Ftrackpadtouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Ftrackpadtouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Ftrackpadtouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinw","download_url":"https://codeload.github.com/kevinw/trackpadtouch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinw%2Ftrackpadtouch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29661610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["game-development","input","multitouch","unity","unity3d"],"created_at":"2024-11-06T05:19:18.987Z","updated_at":"2026-02-20T19:33:23.597Z","avatar_url":"https://github.com/kevinw.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trackpad Touch\n\n\u003cimg src=\"https://kev.town/trackpadtouch/tt_logo-horizontal-700px.png\"\u003e\n\n## What is this?\n\nReads multitouch input from your trackpad, giving it to your Unity game with an interface matching `Input.touches`.\n\nThis allows you to test your game's multitouch functionality in the editor, without having to use Unity Remote or building to the device. It also works great in standalone builds, so you can ship multitouch support to users.\n\n\nAn [explanation video](https://www.youtube.com/watch?v=DT7tO7-4VnM):\n\n[![YouTube video describing the plugin](https://img.youtube.com/vi/DT7tO7-4VnM/0.jpg)](https://www.youtube.com/watch?v=DT7tO7-4VnM)\n\nAn editor screenshot:\n\n\u003cimg src=\"https://kev.town/trackpadtouch/TrackpadTouchEditorScreenshot700.jpg\"\u003e\n\n## Disabling OS X Gestures\n\nThis plugin cannot prevent OS X from catching Mission Control and Notification Center gestures. They take precedence and Unity won't be able to properly emulate an iPad or mobile device.\n\nIf you want to disable the OS gestures, go to System Preferences -\u003e Trackpad -\u003e More Gestures and uncheck all the checkboxes.\n\n## Build instructions\n\n1. Build the XCode project `XCode/TrackPad/TrackPadTouchOSX.xcodeproj`.\n\n2. Place `TrackpadTouchOSX.bundle` into your Unity project's `Assets/Plugins` folder.\n\n## How to Use\n\n**NOTE: There is an example scene included in the package showing off multitouch support.**\n\nImport the `TrackpadTouch` package.\n\nUse `TrackpadInput.touches` just like you would use `Input.touches`:\n\n```C#\nusing UnityEngine;\nusing TrackpadTouch;\n\npublic class TrackpadTest : MonoBehaviour {\n  public void Update() {\n    foreach (var touch in TrackpadInput.touches) {\n      switch (touch.phase) {\n        case TouchPhase.Began:\n          Debug.Log(\"Finger \" + touch.fingerId + \" began at \" + touch.position);\n          break;\n        case TouchPhase.Moved:\n          Debug.Log(\"Finger \" + touch.fingerId + \" moved to \" + touch.position);\n          break;\n        case TouchPhase.Ended:\n        case TouchPhase.Canceled:\n          Debug.Log(\"Finger \" + touch.fingerId + \" ended\");\n          break;\n      }\n    }\n  }\n}\n```\n\nSee the [`Touch`](https://docs.unity3d.com/ScriptReference/Touch.html) and [`TouchPhase`](http://docs.unity3d.com/ScriptReference/TouchPhase.html) classes in the Unity docs for more info on how to use the `Input.touches` interface.\n\n## How does it work?\n\nSee the [plugin code](XCode/TrackPad/TrackPad/Plugin.m) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinw%2Ftrackpadtouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinw%2Ftrackpadtouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinw%2Ftrackpadtouch/lists"}