Edgepad 開源應用把 Android 手機變成手提電腦的觸控板、鍵盤和遊戲手掣
I built an open-source app that turns an Android phone into a trackpad, keyboard and gamepad for a laptop
Akshit Bansal 開發的開源應用 Edgepad 已推出 5.1.0 版,可把 Android 手機變成 Windows、Mac 或 Linux 手提電腦的觸控板、鍵盤和遊戲手掣。
My laptop spends a lot of time across the room, plugged into a TV. The options for controlling it from the sofa were a remote app that only sends media keys, or a remote-desktop app that streams the whole screen and wants an account and a network round trip just to change the volume.
So I built Edgepad. It is free, MIT licensed, and version 5.1.0 is out now.
What it is
Edgepad is two apps: one on an Android phone, one on a Windows, Mac or Linux laptop. They pair once over Bluetooth, the way a headset does, and after that they talk directly. No account. No server. Over Bluetooth it needs no Wi-Fi at all. Wi-Fi and USB links are optional and off until you turn them on.
What it does
- Trackpad. One finger moves and clicks, two scroll and pinch, three and four run actions you assign.
- Corner dials. Each corner of the phone is a dial: volume, brightness, zoom, media scrub and more. They show the laptop's real values.
- Keyboard. A full keyboard in six sizes, from a full board with a number pad down to 60%.
- Gamepad. Two sticks and analog triggers, with a layout editor. On Windows (with the ViGEmBus driver) and Linux the laptop sees an Xbox controller.
- Presenter. Next and previous slide, and a laser dot that follows your thumb.
- Clipboard and files. Clipboard sync both ways with a history, and file transfer up to 2 GB per file, checked by SHA-256.
- Macros. Buttons that open an app, a folder or a website. Draw a shape on the trackpad to run one.
How it works
The phone does not stream anything. It recognises gestures and sends small semantic frames: move the pointer, press a button, run action 3, set control 0 to 55. The laptop owns the table of what each action does, carries it out with the platform's own APIs, and reports its state back so the dials show real values.
The default link is Bluetooth Classic RFCOMM between two already-paired devices. The connection opens with a handshake that checks a protocol version, then the laptop asks "Trust this phone?" before anything is accepted. An optional six-digit PIN adds a lock-out against guessing.
The Windows and Linux apps share one C# core for the protocol, the handshake, trust and the dispatcher. The Mac app is Swift with its own copy of the core. The phone app is Kotlin.
The part for developers
This is optional and off until you connect it. The phone gets an AI screen and a Git screen:
- Limits, spend and open sessions for Claude Code and Codex.
- Approvals for Claude Code, Codex, Gemini CLI and OpenCode, answered from the phone.
- A read-only list of pull requests and issues from GitHub, GitLab, Gitea, Forgejo, Codeberg, Bitbucket and Gitee.
Honest status
Windows is the one tested on real hardware. The Mac and Linux apps are newer and still in testing, so expect rough edges there, and please report what you find.
Links
- Source and downloads: https://github.com/akshit-bansal11/edgepad
- Site and docs: https://getedgepad.com
- Wire format: https://github.com/akshit-bansal11/edgepad/blob/main/docs/PROTOCOL.md
Feedback, bug reports and stars are all welcome.
來源:DEV Community · dev.to