Hi! I built a small open-source project that turns a phone into a mouse and keyboard for a Windows PC. Nothing to install on the phone: it's a web page served by a Python app on the PC.
**What it does**
- Touchpad with gestures (tap, 2-finger right click/scroll, 3-finger middle click, tap-and-drag)
- Gyroscope "laser pointer" mode with a quick calibration
- Keyboard with accents, emoji and Ctrl/Alt/Win/arrow keys
- File transfer both ways (phone → Downloads folder, PC → phone via right-click "Send to")
- Fullscreen + rotation, works on Android and iPhone
**How it works**
- Python (aiohttp) serves the page over HTTPS and a WebSocket; the PC side injects input with the Win32 SendInput API
- 6-digit PIN used only for pairing: sent once in a POST body, then the phone gets an HttpOnly session cookie (the PIN never goes in a URL)
- PIN guessing limits: progressive per-device lockout, a cap of 10 wrong PINs per minute across the whole network, and the PIN rotates itself after 30 failures
- Only answers the local network; the WebSocket rejects other origins
- Browsers require HTTPS for the gyroscope, so the PC uses its own certificate. Optionally, a per-PC certificate authority, restricted by Name Constraints to private IPs and valid for 2 years, removes the warning
- Windows installer (unsigned; VirusTotal 1/70, a generic Kingsoft detection) or a keyboard-only one-command install, plus a diagnostics script for firewall/network issues
- Optional push notification (ntfy) with the current address when the PC starts or changes network
**Limitations**
- Windows only for now; the UI is in Brazilian Portuguese (translations welcome)
- Games with kernel-level anti-cheat block virtual input by design
- iOS browsers can't lock orientation, so the page rotates itself and uses a built-in keyboard in landscape
Repo: https://github.com/Joao-VTech/phone-mouse
Release: https://github.com/Joao-VTech/phone-mouse/releases/latest
Feedback, issues and PRs are very welcome, and I'd especially appreciate a review of the security side!