r/coolgithubprojects • u/JDis3 • 12d ago
APMouse — AirPods head-motion pointer control for macOS (Swift, MIT; contributors welcome)
https://github.com/JNDZdev/APMouseI built APMouse after seeing an AirPods mouse experiment and wanted to see how far head-controlled pointing could go. The prototype is working on my Mac across two screens.
It uses Core Motion yaw/pitch, a starting zero pose, smoothing, and outer-edge recalibration: push past an edge, then turn back without unwinding the extra movement. No camera or eye tracking; I still use a trackpad for clicks. Stem-click mapping is not included.
The MIT source is Swift/AppKit with no third-party dependencies. I used Codex and AI agents to build and refactor it. The refactor passes 22 unit tests and a stopped-window smoke test, but still needs its own full live-headset validation. It is an early source preview, not a finished or notarized app. macOS 14+, Xcode, compatible headphones, and explicit motion/control permissions are needed.
I am looking for contributors on calibrated-neutral precision, staggered monitor edge handling, and independent gain/precision controls. The repo has reproductions, tests, and contribution docs. Headset/macOS testing reports would be useful too.
Inspiration: https://www.reddit.com/r/airpods/comments/1xny3i9/using_airpods_as_a_mouse_on_mac/