Mouse Controller app icon
Story

How Mouse Controller was made

Mouse Controller started with a simple wish: control the Mac from the couch, during a presentation or on a TV, without buying any extra hardware. The phone in your pocket already has a great touch surface.

Two apps that talk directly

Mouse Controller is really two apps. The iPhone app is the trackpad, keyboard and remote you hold. A small Mac app lives in the menu bar and carries out the cursor, keyboard and volume actions.

The two talk to each other straight over your Wi-Fi or your iPhone's Personal Hotspot. There is no server and no account, and nothing goes through the internet.

Finding the Mac without an IP address

Nobody wants to type an IP address. The Mac app announces itself on the local network with Bonjour, so the iPhone simply lists the Macs it finds nearby. When the iPhone is the hotspot, it also checks the hotspot's own address range, in case Bonjour isn't available there.

Private on a shared network

A remote that can type on your Mac has to be private, even on café Wi-Fi. You pair once with an 8-character code, and both apps turn that code into a key for an encrypted TLS connection. Only an iPhone that knows the code can connect, and after five wrong codes the Mac refuses all connections for 30 seconds.

Making it feel like a real trackpad

On the Mac, every movement and key press becomes a system event, which is why macOS asks for Accessibility permission. Shortcuts follow your current keyboard layout, so ⌘Z works on non-US keyboards too.

Version 1.3 was a complete redesign: a guided start, a pointer that moves with your finger from the very first touch, pairing boxes like a verification code, and a checklist for when your Mac doesn't show up.

In November the Mac app moved to the Mac App Store. It now runs in Apple's App Sandbox, with network access as its only extra entitlement, and it updates itself like any other app, so there is no more zip file to download.

Timeline

  1. 1.2, the first App Store release
  2. 1.3, a completely new design
  3. The Mac app on the Mac App Store

Every update in News →

Built with

  • SwiftUI
  • Network framework
  • Bonjour
  • Core Graphics