How coolerwave/aimmac works
AimMac turns iPhone or Apple Watch motion and gestures into Mac pointer control: the device pairs over Bluetooth, streams input, and the Mac receiver dispatches it to cursor control. Phone and watch views provide pairing and remote controls; the Mac notch panel exposes status and controls. The repository also includes Ping Pong, a browser game played with the cursor. The README documents the game’s opponent, difficulty, scoring, and market-screen features, but its implementation is represented only by index.html in the tree; unsampled code paths are not inferred.
Main entry points: AppDelegate.swift Mac App Coordinator · PhoneView.swift Phone Remote UI · PointerSession.swift Pointer Session · index.html Ping Pong Game
Components 19
Phone and Watch
- iPhone App
Apple/iOS/AimPhoneApp.swift - Phone Remote UI
Apple/iOS/PhoneView.swift - Watch App
Apple/Watch/AimWatchApp.swift - Watch Remote UI
Apple/Watch/WatchView.swift
Wireless Input
- Pointer Session
Apple/Shared/PointerSession.swift - Motion Aiming
Apple/Shared/MotionAim.swift - Bluetooth Client
Apple/Shared/MacLink.swift - Packet Protocol
Shared/Protocol.swift
Mac Pointer Control
- Bluetooth Receiver
Mac/Sources/Receiver.swift - Mac App Coordinator
Mac/Sources/AppDelegate.swift - Pointer Engine
Mac/Sources/PointerEngine.swift - Aim Smoothing
Mac/Sources/OneEuro.swift - Notch Controls
Mac/Sources/NotchPanel.swift - Mac Cursor
Browser Game
- Browser Player
- Ping Pong Game
index.html - Opponent Roster
index.html - Stock Market Screen
index.html
Other components
- Player
Connections 21
- Player → Phone Remote UI: uses remote
README.md - Player → Watch Remote UI: uses remote
README.md - iPhone App → Phone Remote UI: shows
Apple/iOS/AimPhoneApp.swift - Watch App → Watch Remote UI: shows
Apple/Watch/AimWatchApp.swift - Phone Remote UI → Pointer Session: controls
Apple/iOS/PhoneView.swift - Watch Remote UI → Pointer Session: controls
Apple/Watch/WatchView.swift - Pointer Session → Motion Aiming: starts and stops
Apple/Shared/PointerSession.swift - Pointer Session → Bluetooth Client: sends input
Apple/Shared/PointerSession.swift - Phone Remote UI → Bluetooth Client: moves trackpad
Apple/iOS/PhoneView.swift - Bluetooth Client → Bluetooth Receiver: streams Bluetooth input
README.md - Player → Bluetooth Receiver: approves pairing
- Bluetooth Receiver → Mac App Coordinator: dispatches events
Mac/Sources/Receiver.swift - Mac App Coordinator → Bluetooth Receiver: starts receiver
Mac/Sources/AppDelegate.swift - Mac App Coordinator → Pointer Engine: configures and controls
Mac/Sources/AppDelegate.swift - Mac App Coordinator → Notch Controls: updates status
Mac/Sources/AppDelegate.swift - Mac App Coordinator → Aim Smoothing: uses smoothing
Mac/Sources/AppDelegate.swift - Pointer Engine → Mac Cursor: posts pointer events
Mac/Sources/PointerEngine.swift - Mac Cursor → Ping Pong Game: controls play
README.md - Browser Player → Ping Pong Game: plays
README.md - Ping Pong Game → Opponent Roster: offers opponents
README.md - Ping Pong Game → Stock Market Screen: shows match ticker
README.md