Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 954 Bytes

File metadata and controls

23 lines (17 loc) · 954 Bytes

ts2mtd (touchscreen to multitouch device)

Important

This tool is internal and intended to be used only for the development of InputActions. Feature requests are likely to be rejected.

Control a virtual evdev touchpad/touchscreen using a touchscreen device and a web browser.

Dependencies

  • Extra CMake Modules
  • CLI11
  • Qt6: Core, HttpServer, WebSockets

Usage

Warning

This tool uses HTTP and has no authentication. It is not recommended to use it on untrusted networks (although there is not anything malicious an attacker could do besides generating touch events).

Run ts2mtd --help for help.

The tool must have access to /dev/uinput, it can be run as root.

  1. Run ts2mtd, example: ts2mtd -m touchpad -w 164 -h 76.5 --http-port 1701 --websocket-port 1702
  2. Open http://[server ip]:[port] on another device, refresh if orientation is changed or connection is lost