Projects & Experience

2026

Touchpad

A pair of Android tablet and macOS apps that turns the tablet's touchscreen into a computer input surface. The tablet sends gestures over local Wi-Fi, and the macOS client translates them into system pointer, mouse-button and scrolling events.

Project roles
Android DevelopermacOS Application DeveloperNetwork Protocol Engineer

Technologies and tools

JavaAndroid SDKAndroid API 14+Gradle 8.11.1Swift 6Swift Package ManagerSwiftUIAppKitNetwork.frameworkCore GraphicsApplicationServicesAccessibility APIFoundationCombineUserDefaultsTCPJSONUTF-8LF-delimited protocolADB (development/install only)BashRussian and English documentation
  • Built two cooperating applications: a full-screen Android app turns a tablet into a touch surface, while the macOS app receives commands and controls the system pointer. The devices connect directly over local Wi-Fi; normal operation needs neither internet access nor ADB.
  • Implemented Android gesture recognition from touch events: one-finger movement moves the pointer, a short tap clicks the left button, a short two-finger tap clicks the right button, and multi-finger movement scrolls. A second tap followed by movement starts dragging; lifting the finger or cancelling the gesture ends it. Movement is sent as relative deltas, and multi-finger gestures use the touch centroid.
  • Built an Android TCP server on port 27183. It accepts one Mac connection, reports device details and touch-surface dimensions, negotiates readiness through `hello`/`ready`, sends gesture events, and displays startup, waiting, connected and error states. The screen stays on during use; tablet rotation updates the touch-surface dimensions without restarting the server.
  • Designed and documented protocol version 1: UTF-8 JSON over TCP, one message per line separated by LF; messages carry a version, type, sequence number and monotonic timestamp, while movement events carry relative `dx`/`dy`. The protocol defines connection and readiness, pointer, click, scroll and drag events, as well as ping/pong and error messages.
  • Built a macOS menu bar app with SwiftUI/AppKit and a Network.framework client. Its TCP stream reader assembles messages split across partial reads and separates multiple messages received together; the client validates the protocol version, handles unknown and malformed messages, and retries the connection every 2 seconds.
  • Translated commands into macOS mouse events through Core Graphics: pointer movement, left and right clicks, vertical and horizontal scrolling, button hold and dragging. Added a configurable tablet IP, device/connection/last-event status, start, stop and reconnect controls, pointer sensitivity (0.3–4.0), scroll sensitivity (0.2–3.0), and a natural-scrolling toggle.
  • Added macOS Accessibility permission checks and prompts, plus a shortcut to the relevant Privacy settings. On connection loss, the app releases held buttons so the system is not left with a stuck click.
  • Configured Android API 14 and later (Android 4.0.4), Java 8 and macOS 13 and later; the app modules use no third-party dependencies. Prepared Gradle and Swift Package Manager builds, environment-check, launch and Android-install scripts, and a packaging script that creates a debug APK and a ZIP containing `Touchpad.app`, its icon and an ad hoc macOS signature.
  • Prepared demo assets, Russian and English instructions, and separate protocol, architecture and development documents. Added 4 Swift tests covering movement and device-message decoding, preservation of an unknown message type, and encoding a `ready` response; the repository has no Android tests. The documentation records checks on a MacBook Air M2 running macOS Tahoe 26.5 and a 3Q Surf RC9716B-DG tablet running Android 4.0.4.