<!-- Generated by scripts/sync-agent-content.mjs. Edit the shared public sources, then regenerate. -->
# Project Unity

One keyboard and mouse across macOS and Windows.

- Dates: 2026
- Status: Systems prototype
- Areas: Software engineering; Native apps
- Stack: Swift · C++ · TCP · UDP
- Topics: Swift; C++; macOS; Windows; Networking; Security; Systems
- Public case study: https://mgiorgetti.com/project_details/project-unity.html

## Problem

Working across macOS and Windows requires transferring keyboard and mouse control while recovering cleanly from lost connectivity.

## Contribution

Cross-platform systems development spanning native input capture and injection, pairing, transport and input ownership.

## Technical approach and public case study

One keyboard and mouse across a Mac and Windows PC. Cross a screen edge to change computers.

- Swift · C++ / Win32

- Mac–Windows prototype

Control works in both directions, with one remote destination at a time.

### Pairing and input control

**Pairing**

DNS-SD discovers nearby computers. A six-digit confirmation pairs them; manual addressing is available if discovery fails.

**Transport**

Authenticated TCP assigns input ownership. Encrypted UDP carries cumulative motion and key/button snapshots so a lost packet need not stall movement.

**Recovery**

Acknowledgements track key and button changes. Watchdogs release remote input if the connection fails.

### Input latency

The August 2026 benchmarks cover transport and input injection in the tested configurations. Application rendering time is excluded.

**Same-LAN transport**

20,000 samples at 1,000 Hz with no recorded packet loss. The Wi-Fi tests measured a 2.0 ms median round trip and 6.1–7.0 ms at p99.9.

**Capture to injection**

1.107 ms median and 2.481 ms p99.9 across 5,001 segmented motion samples.

**Remaining work**

Protocol review and physical testing across three devices remain open.

## Results and limitations

The published latency measurements are scoped to the tested transport and injection configurations and exclude application rendering. Protocol review and physical testing across three devices remain open.

## Public supporting links

- [Portfolio case study](https://mgiorgetti.com/project_details/project-unity.html)
- [Matteo Giorgetti profile](https://mgiorgetti.com/profile.md)
