[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109907":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},109907,"WatchPointer","umarz317\u002FWatchPointer","umarz317","Use your Apple Watch as a pointer for your Mac. Point to move, tap to click, hold to drag.",null,"Swift",546,44,3,1,0,8,89,398,30,94.93,"MIT License",false,"main",true,[],"2026-11-07 17:04:29","2026-11-23 19:59:41","# WatchPointer\n\n\u003Cimg src=\"docs\u002Ficon.png\" width=\"96\" align=\"right\" alt=\"\">\n\nUse your Apple Watch as a pointer for your Mac. Point it at the screen to move the cursor, tap to click, hold to drag.\n\nNo Wi-Fi, no servers: the watch talks straight to the Mac over Bluetooth.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fdemo.webp\" width=\"320\" alt=\"Holding an Apple Watch like a remote and pointing it at a MacBook to move the cursor\">\n\u003C\u002Fp>\n\n## What it does\n\n- **Point** like a laser pointer: the cursor goes where the top edge of the watch points. Works across all your displays.\n- **Tap** the pad to click, **hold** to drag, **right-click** button, **Digital Crown** to scroll.\n- **Center** re-aims the middle of the screen; **Pause** frees the cursor for your trackpad.\n- **Pair** with a Mac once; the watch only connects to that Mac until you unpair it.\n- **Notch panel** on the Mac: connection state, the watch's name and model, battery, live aim, and a pin to keep it open.\n- **Sky Shot**, a small light-gun style game to try it on.\n\n## Requirements\n\n- Mac with macOS 14 or later and Bluetooth\n- Apple Watch with watchOS 11 or later\n- Xcode 16 or later (to install the watch app)\n\n## Run it\n\n### 1. Mac receiver\n\n```bash\ncd Mac\nswift run WatchPointer\n```\n\nThe first time, macOS asks for **Bluetooth** access and for **Accessibility** access (System Settings › Privacy & Security › Accessibility) for your terminal app. Accessibility is what lets it move the cursor. Allow both, then run it again.\n\nIt shows up in the notch (or the middle of the menu bar on Macs without one).\n\n### 2. Watch app\n\n1. Open `Watch\u002FWatchPointer.xcodeproj` in Xcode.\n2. In **Signing & Capabilities**, pick your team. If Xcode complains about the bundle identifier, change it to something of your own.\n3. Choose your Apple Watch as the run destination and press **⌘R**.\n4. Open WatchPointer on the watch and tap **Pair** next to your Mac.\n\n### 3. Point\n\nHold the watch like a remote with the top edge (12 o'clock) toward the screen. Point at the middle of the screen and tap **Center** to line it up.\n\n## Settings\n\nAll on the Mac, no reinstall needed:\n\n```bash\nswift run WatchPointer 1.2               # speed: higher = less turn to reach the edges\nswift run WatchPointer steady=0.6        # steadier when holding still (default 0.8)\nswift run WatchPointer quick=0.02        # less lag on fast moves (default 0.01)\n```\n\n## Sky Shot\n\nOpen `Game\u002Findex.html` in a browser, press **F** for full screen, and tap the watch to start. Paper planes fly across a sky that turns from morning to sunset as the round runs out. Bullseyes count double, gold planes triple.\n\n## Tips for using it in your hand\n\nOn the iPhone's Watch app, turn off **Passcode › Wrist Detection**, or the watch locks as soon as it's off your wrist. On the watch, set **Display & Brightness › Wake Duration** to 70 seconds and **General › Return to Clock › WatchPointer** to one hour.\n\n## How it works\n\n- **Watch** (`Watch\u002F`): reads gravity and the gyroscope 100 times a second. Up\u002Fdown comes from gravity, so it never drifts; left\u002Fright adds up turns around the vertical. Each sample is sent with the watch's timestamp.\n- **Mac** (`Mac\u002F`): projects the aim onto the screen like a laser hitting a wall, smooths it with a [1€ filter](https:\u002F\u002Fgery.casiez.net\u002F1euro\u002F) using the watch's timestamps, and moves the cursor 240 times a second on its own thread. Clicks land where you were pointing the moment your thumb touched the watch, so the tap's jolt doesn't move them.\n- **Bluetooth**: the Mac advertises a service; the watch connects and writes small packets (aim, click, drag, scroll, pause, info). The protocol is documented at the top of `Mac\u002FSources\u002FWatchPointer\u002FReceiver.swift`.\n\n## Security note\n\nPairing is chosen on the watch. The Mac itself doesn't ask for confirmation yet, so any nearby Bluetooth device that speaks this protocol could move the cursor while the receiver is running. Quit the receiver when you're not using it.\n\n## License\n\nMIT, see [LICENSE](LICENSE).\n","WatchPointer 是一款将 Apple Watch 变身为 Mac 鼠标指针的本地化控制工具。它通过蓝牙直连实现低延迟交互：用户可手持手表指向屏幕移动光标，轻点表冠或表盘实现点击、长按拖拽、右键及数码表冠滚动；支持多显示器、光标居中校准与暂停功能，并在 macOS 状态栏\u002F刘海区显示连接状态与实时瞄准信息。整个系统无需 Wi-Fi 或云端服务，所有数据仅在设备间本地传输。适用于远程演示、无障碍操作、临时替代鼠标或创意交互场景。",2,"2026-11-24 04:37:51","CREATED_QUERY"]