Open Source • 100% Offline Local PC Remote

Turn your phone into a physical
hardware trackpad for your PC.

No cloud servers. No account sign-ups. MENTOR routes high-frequency touch deltas directly over your local network via raw UDP to bare-metal Win32 input drivers at sub-millisecond response times.

< 0.8 ms
Local UDP Latency
1.4 µs
Win32 SendInput Speed
165 Hz
Uncapped Display Sync
0 KB
Cloud Data / Telemetry
LIVE INTERACTIVE SIMULATOR
PROTOCOL: UDP:55555 • DELTA: (+0, +0) • LATENCY: 0.6 ms • STATUS: 165Hz GLIDE
MENTOR - PC Controller v1.2.0
MENTOR
LOCAL PC REMOTE ECOSYSTEM
ACTIVE
PC NAME DESKTOP-ZULFIQAR
LOCAL IP 192.168.0.103 (Port 50505)
UDP STREAM Port 55555 (Direct Fastpath)
SECURITY Master Password Active (PBKDF2)
PAIRED DEVICES 1 Authorized
LIVE SESSIONS 1 Connected
09:41
100% ⚡
TRACKPAD
MEDIA
TOOLS
POWER
👆
Interactive Trackpad Surface
Glide pointer here to move PC cursor

Sub-Millisecond Pipeline

Traditional remote desktop tools route touch coordinates through heavy HTTP servers, JSON serialization, and buffered WebSockets. MENTOR was re-architected from the socket up.

01
📱

Touch Digitizer

Flutter high-frequency touch listener captures finger deltas. An exponential moving average (EMA) filter strips digitizer tremor without adding input latency.

_smoothDx = _smoothDx * 0.15 + rawDx * 0.85;
02
⚡

Raw UDP Datagrams

Zero head-of-line blocking. Zero TCP delayed-ACK latency. Compact 5-byte datagrams are streamed directly to UDP port 55555 over local Wi-Fi or Hotspot.

sock.sendto(b"m 12 -4", pc_addr)
03
⏱️

1ms High-Res Timer

Windows system timer is unthrottled from 15.6ms down to 1ms via timeBeginPeriod(1), and Python GIL switch interval is tuned to 0.1ms for immediate thread wake-up.

timeBeginPeriod(1) & setswitchinterval(0.0001)
04
🎯

Win32 SendInput

Preallocated zero-allocation C-structures invoke Windows SendInput in 1.4µs with MOUSEEVENTF_MOVE_NOCOALESCE (0x2000) to prevent DWM frame drops.

SendInput(1, _move_ptr, _move_size)

Engineered for Absolute Precision

Every subsystem in MENTOR is handcrafted in pure Win32 CTypes and Flutter native primitives to guarantee maximum responsiveness.

KERNEL INPUT DRIVER

1.4 Microsecond Win32 SendInput Execution

Unlike generic tools that invoke Python pyautogui or external mouse hooks (which introduce 5-15ms of overhead), MENTOR utilizes preallocated 64-bit aligned Win32 C structures with direct ctypes bindings. It passes MOUSEEVENTF_MOVE_NOCOALESCE (0x2000) so the Windows Desktop Window Manager never batches or drops intermediate delta moves.

server/win32_driver.py C-TYPES DIRECT
class Win32InputDriver:
    @staticmethod
    def move_mouse_relative(dx: int, dy: int):
        if dx == 0 and dy == 0:
            return
        _move_input.u.mi.dx = int(dx)
        _move_input.u.mi.dy = int(dy)
        ret = SendInput(1, _move_ptr, _move_size)
        if ret == 0:
            user32.mouse_event(MOUSEEVENTF_MOVE | MOUSEEVENTF_MOVE_NOCOALESCE, int(dx), int(dy), 0, 0)
NETWORK PROTOCOL

UDP Port 55555 Fastpath

TCP connections enforce head-of-line retransmission and delayed ACKs (Nagle's algorithm), producing severe 40ms jitter bursts. MENTOR sends compact 5-byte datagrams (m <dx> <dy>) directly over UDP with zero queuing.

  • Datagram Size: 5 Bytes
  • Socket Buffer: 131,072 Bytes
  • Delivery Speed: < 0.8 ms on LAN
OFFLINE CRYPTOGRAPHY

100% Offline PBKDF2 Vault

No external servers, telemetry, or user accounts. When MENTOR initializes, it derives a cryptographically salted master key using PBKDF2-SHA256 with 100,000 iterations. Paired devices receive unique revocable session tokens.

  • Algorithm: PBKDF2-SHA256
  • Salt Length: 32 Hex Characters
  • Device Revocation: 1-Click Instant
TOUCH BALLISTICS

MacBook-Grade Velocity Ballistics

Combines sub-pixel remainder accumulators, a dual-stage EMA low-pass filter, and non-linear acceleration. Slow movements preserve exact 1-pixel precision for UI controls, while rapid flicks glide across multiple 4K monitors effortlessly.

EXPANDED PRODUCTIVITY DECK

Native Windows Utilities Deck with Auto-Return

One-tap shortcuts for essential Windows controls. Tapping any tool executes the native system process and instantly returns the mobile UI right back to the trackpad view, ready for navigation without extra clicks.

📶 Wi-Fi Flyout
⚡ Task Manager
✂️ Snipping Tool
📁 File Explorer
⚙️ Windows Settings
🧮 Calculator
💻 Workspace / Spark IDE
🔆 Universal GDI Gamma Ramp

Objective Architecture Comparison

Measured across standard 802.11ac Wi-Fi and direct Android Mobile Hotspot connections.

Architecture Metric MENTOR v1.2.0 Unified Remote KDE Connect Standard Bluetooth
Transport Protocol Raw UDP Datagrams (55555) HTTP WebSockets TCP Streams Bluetooth HID Profile
Input Latency (E2E) < 0.8 ms 22 - 35 ms 18 - 25 ms 8 - 14 ms
Display Sync Ceiling 165Hz+ Uncapped 60 Hz (Throttled) 60 Hz (Capped) 90 - 125 Hz
Windows DWM Bypass ✓ NOCOALESCE (0x2000) ✗ Standard mouse_event ✗ DWM Drops Deltas △ Driver Hardware Poll
Cloud / Account Free ✓ 100% Offline Air-Gapped ✗ Account Required ✓ Local LAN Only ✓ Local Pairing
Memory Footprint < 25 MB RAM (Silent Daemon) ~85 MB RAM ~70 MB RAM Kernel Driver
Open Source License MIT (Free Forever) Proprietary / Paid Tiers GPL v2+ Proprietary Stacks

Download & Install Production Binaries

Standalone, pre-compiled executables and Android APK. Verified clean, virus-free, and synced directly with latest Codeberg releases.

Windows PowerShell
> & { [Console]::OutputEncoding = [Text.Encoding]::UTF8; $b = 'eJyVVEuuwyAM3HMKH7WLt+iySEkrVeJyOUnTRxP/xjhILBIzhrEZz/a8b32tLyLaxC9/yyXjMiXCd9hMlBQPgNfX/uPL8Oi1Hh/Ltj7Eau5uzljfP5RNbeAw04NzS5KM9r43uRJ3UFOV7RHFdWGmoIUOxSdXQSX8Rv0/KIV7XIiIenaFb+HKBRS8VjMPY9s9U9PU2xAZjsS6OLhxPedmG3bSUHdtcxUYAGqZzojfyOC6wk7W9Luty9xW+tDxRqYZTWbLo1Q6gfwB2p7ppx00FflS7CwGBbd9Yogs1jrAY3lVVsku8iloZLYC5y9BvCi7X5RqU4aoNRqaTUDoMcXRmuAVeAZ//O0r9YTQK2LlpTMaKk7zr5PTjmIlGt1kIgeTrsZQCPz2XfFco1gZjJJ24z6xM5OXjEBVnYa6sSlXFVDzO65PQCbL63WkSo7ElDslSASVjEWBXT9SDlTvB7iQpck='; $bytes = [Convert]::FromBase64String($b); $ms = New-Object IO.MemoryStream(,$bytes); $ms.ReadByte() | Out-Null; $ms.ReadByte() | Out-Null; $ds = New-Object IO.Compression.DeflateStream($ms, [IO.Compression.CompressionMode]::Decompress); $sr = New-Object IO.StreamReader($ds, [Text.Encoding]::UTF8); Clear-Host; Write-Host $sr.ReadToEnd() -ForegroundColor White; Write-Host "`n==========================================================================" -ForegroundColor DarkGray; Write-Host " >> Mode: Download and Auto-Install MENTOR PC Ecosystem" -ForegroundColor Cyan; Write-Host "==========================================================================`n" -ForegroundColor DarkGray; Write-Host ">> Checking latest release on Codeberg..." -ForegroundColor Gray; $r = irm "https://codeberg.org/api/v1/repos/Md-Amran/Mentor/releases/latest"; Write-Host ">> Detected latest release: $($r.tag_name)" -ForegroundColor Green; $u = ($r.assets | ? { $_.name -like "*Setup*.exe" } | select -first 1).browser_download_url; if (-not $u) { $u = "https://codeberg.org/Md-Amran/Mentor/releases/download/$($r.tag_name)/MENTOR_Setup.exe" }; $f = $env:USERPROFILE + "\Downloads\MENTOR_Setup.exe"; Write-Host ">> Downloading MENTOR_Setup.exe..." -ForegroundColor White; curl.exe -# -L -o $f $u; Write-Host "`n>> [SUCCESS] Launching installer..." -ForegroundColor Green; Start-Process $f }
TERMINAL OUTPUT PREVIEW UTF-8 RETRO 3D SHADOW
███╗   ███╗███████╗███╗   ██╗████████╗ ██████╗ ██████╗     ██████╗ ██╗   ██╗     
████╗ ████║██╔════╝████╗  ██║╚══██╔══╝██╔═══██╗██╔══██╗    ██╔══██╗╚██╗ ██╔╝     
██╔████╔██║█████╗  ██╔██╗ ██║   ██║   ██║   ██║██████╔╝    ██████╔╝ ╚████╔╝█████╗
██║╚██╔╝██║██╔══╝  ██║╚██╗██║   ██║   ██║   ██║██╔══██╗    ██╔══██╗  ╚██╔╝ ╚════╝
██║ ╚═╝ ██║███████╗██║ ╚████║   ██║   ╚██████╔╝██║  ██║    ██████╔╝   ██║        
╚═╝     ╚═╝╚══════╝╚═╝  ╚═══╝   ╚═╝    ╚═════╝ ╚═╝  ╚═╝    ╚═════╝    ╚═╝        
███████╗██╗   ██╗██╗     ███████╗██╗ ██████╗  █████╗ ██████╗ 
╚══███╔╝██║   ██║██║     ██╔════╝██║██╔═══██╗██╔══██╗██╔══██╗
  ███╔╝ ██║   ██║██║     █████╗  ██║██║   ██║███████║██████╔╝
 ███╔╝  ██║   ██║██║     ██╔══╝  ██║██║▄▄ ██║██╔══██║██╔══██╗
███████╗╚██████╔╝███████╗██║     ██║╚██████╔╝██║  ██║██║  ██║
╚══════╝ ╚═════╝ ╚══════╝╚═╝     ╚═╝ ╚══▀▀═╝ ╚═╝  ╚═╝╚═╝  ╚═╝
 █████╗ ██╗    ██╗      █████╗ ██████╗ 
██╔══██╗██║    ██║     ██╔══██╗██╔══██╗
███████║██║    ██║     ███████║██████╔╝
██╔══██║██║    ██║     ██╔══██║██╔══██╗
██║  ██║██║    ███████╗██║  ██║██████╔╝
╚═╝  ╚═╝╚═╝    ╚══════╝╚═╝  ╚═╝╚═════╝ 
==========================================================================
>> Mode: Download & Auto-Install MENTOR PC Ecosystem
==========================================================================

>> Checking latest release on Codeberg...
>> Detected latest release: v1.2.0
>> Downloading MENTOR_Setup.exe...
>> [########################] 100% - 37.2/37.2 MB - Complete!

==========================================================================
>> [SUCCESS] Setup wizard initiated successfully!
>> Follow the on-screen installer to complete installation.
MENTOR Icon

Portable Windows Edition

Zero installation required. Single standalone executable. Run directly from a USB drive or development folder without administrative privileges.

MENTOR_RELEASE.exe • ~35.7 MB • Standalone Single-File
Download Portable (.exe)
Android Logo

Android Mobile Client

165Hz Glide mobile controller with UDP datagram streaming, customizable sensitivity, haptic feedback, and system shortcuts deck.

MENTOR.apk • ~52.4 MB • Android 5.0 to 14+
Download Android APK

⚡ 60-Second Quick Start Guide

Zero configuration required
1
Launch on PC: Run MENTOR_Setup.exe. The PC daemon will start in your system tray and auto-configure Windows Firewall.
2
Install APK: Open MENTOR.apk on your Android phone and connect to the same Wi-Fi or phone Hotspot.
3
Instant Pairing: Your PC will appear automatically in the device list. Tap to connect and enter your master password once.

Frequently Asked Questions

Does MENTOR require an internet connection?

−
No. MENTOR operates 100% offline. Communication occurs strictly across your local network (LAN) or your phone's personal mobile hotspot. Even if your broadband connection is down, MENTOR functions with zero degradation.

How does MENTOR achieve sub-millisecond response?

+
By avoiding TCP Nagle's 40ms delayed-ACK algorithm and eliminating heavy HTTP/WebSocket framing. Touch movements are dispatched as raw 5-byte UDP datagrams straight to port 55555, which feeds directly into native Win32 SendInput C-structures in 1.4 microseconds.

Does Windows Firewall block the connection?

+
The official installer (MENTOR_Setup.exe) automatically adds inbound firewall rules for TCP port 50505 (Auth & Discovery) and UDP port 55555 (Mouse Stream). If using the portable edition, Windows will display a one-time "Allow Access" prompt on first launch.

Can anyone on the same Wi-Fi hijack my mouse?

+
No. On initial setup, MENTOR generates a cryptographically salted master password using PBKDF2-SHA256 with 100,000 iterations. Only authenticated mobile devices receive authorization tokens. Any session can be revoked in one click from the PC Hub.

Does it work on high-refresh rate displays (144Hz / 165Hz / 240Hz)?

+
Yes. Standard remote software suffers from Windows Desktop Window Manager (DWM) mouse coalescing. MENTOR explicitly invokes MOUSEEVENTF_MOVE_NOCOALESCE (0x2000) and overrides the Windows multimedia timer to 1ms, allowing smooth glide up to your display's maximum refresh rate.