Skip to content
mouse233Public

About

Map a Windows Precision Touchpad to native touch input.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Pad2Touch

Map a Windows Precision Touchpad to native touch input.

Pad2Touch reads finger positions through Windows Raw Input and injects up to five simultaneous contacts at corresponding desktop coordinates. It runs in user mode without a custom driver or changes to the target app.

Experimental. Settings are saved to %LOCALAPPDATA%\Pad2Touch\settings.json and restored on the next launch.

Pad2Touch Control Panel showing the touchpad mapped to a screen

Features

  • Map all or part of the touchpad to a display, screen region, or application window. Window mappings follow the target as it moves or resizes.
  • Start and stop capture in the GUI, or use a global Toggle shortcut or Alt Hold.
  • Use the built-in Test area to see individual touch trails and a two-finger scaling preview.

Requirements

  • Windows 11. Hardware testing on Windows 10 (1703 or later) is pending.
  • A Windows Precision Touchpad on an x64 or ARM64 PC.

Gesture blocking and restoration passed testing on Windows 11 26H2 (build 26300.9974). Testing on earlier builds, including 25H2, is pending. Gesture compatibility

Getting started

Download a build

Download Pad2Touch-windows-amd64.exe or Pad2Touch-windows-arm64.exe for your PC from GitHub Releases. Releases

For builds between releases, sign in to GitHub and open a successful CI run for main. Download the matching ZIP under Artifacts, extract it, and run Pad2Touch.exe. CI artifacts are available for seven days. CI builds

Build from source

Install stable Rust with the MSVC toolchain, the Visual C++ build tools, and a Windows SDK for your architecture. From the repository root, build and launch Pad2Touch.

cargo build --release --locked
.\target\release\Pad2Touch.exe

Start capture

  1. Select your input device and choose a Screen area and Touchpad area.
  2. Click Start capture. To stop, click Stop / disarm or press Ctrl+Alt+Esc if Windows registered the global shortcut.

Limitations

  • Windows routes touches by screen position. A window target must be visible and unobstructed at the point of contact.
  • Elevated apps may reject input from a normally launched Pad2Touch.
  • Windows can still move the pointer, click, and scroll in response to the same touchpad activity.
  • The gesture overrides change user-wide Windows settings while capture runs. If the PC shuts down or every Pad2Touch process is killed first, the touchpad gestures can stay off. Pad2Touch offers to restore them at the next launch, or run Pad2Touch.exe --recover-gestures. Gesture recovery

Diagnostics

Run Pad2Touch.exe --diagnostics to see capture metrics and write session logs to artifacts/runs/. Pad2Touch has no telemetry. Local logs may contain device paths, so review them before sharing. Gesture recovery files live under %LOCALAPPDATA%\Pad2Touch\recovery. GUI diagnostics

After building from source, run the probe script to list detected touchpads.

.\scripts\Run-Pad2Touch.ps1 -Mode probe

Development

cargo test --locked
cargo clippy --all-targets --locked -- -D warnings
cargo fmt -- --check

Default tests never open windows or inject input. See the testing guide for hardware tests and log analysis.

Documentation

Acknowledgments

  • Tapview served as a technical reference for Windows Raw Input and HID parsing. Repository
  • windows-rs provides the windows-sys bindings. Repository

See the third-party notices.

License

Pad2Touch is released under the MIT License.

About

Map a Windows Precision Touchpad to native touch input.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages