feat(pad): drag the mouse as the pad's touchpad with ANYPS5_MOUSE_TOUCHPAD #17608

Closed
MarcZX10 wants to merge 0 commits from upstream-pr/17608 into main
MarcZX10 commented 2026-11-09 01:20:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T01:20:48Z.


What

With ANYPS5_MOUSE_TOUCHPAD=1, a press of the host's left mouse button, while the mouse is not captured, touches the pad's touchpad at the cursor. The window is scaled to the 1920x1080 touchpad, a drag moves the touch point, and releasing the button lifts it. The option is off by default; with it unset the mouse never touches the pad.

Losing focus or entering mouse mode lifts a touch point that the mouse holds.

Commits: split by hunk; a commit may not build on its own. The tip is the validated state.

Tested

Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. Head 5ea79b2ba9:

flock <build lock> env VERIFY_DIR=<worktree> VERIFY_TAG=touchpad4 ANYPS5_REQUIRE_DISPLAY=1 bash <main checkout>/.git/info/tools/run_tests.sh '^(pad_keyboard_mouse)$' pad_keyboard_mouse_tests

Output:

BUILD-EXIT 0
1/1 Test #3880: pad_keyboard_mouse ...............   Passed    0.02 sec
100% tests passed, 0 tests failed out of 1

Overlap: pr_overlap fails closed on 45 PRs that share files. The identifier scan of their added lines (MOUSE_TOUCHPAD, mouseTouch, touchAt, SetMouseTouchpad) finds none. No open PR implements the same functions.

Not verified:

  • A physical touchpad or a real window focus. The unit test drives the keyboard-mouse class directly.
  • Games: nothing was run with the option on.
  • Windows and macOS: not built.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5217213089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17608). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T01:20:48Z. --- ### What With `ANYPS5_MOUSE_TOUCHPAD=1`, a press of the host's left mouse button, while the mouse is not captured, touches the pad's touchpad at the cursor. The window is scaled to the 1920x1080 touchpad, a drag moves the touch point, and releasing the button lifts it. The option is off by default; with it unset the mouse never touches the pad. Losing focus or entering mouse mode lifts a touch point that the mouse holds. Commits: split by hunk; a commit may not build on its own. The tip is the validated state. ### Tested Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. Head `5ea79b2ba9`: ``` flock <build lock> env VERIFY_DIR=<worktree> VERIFY_TAG=touchpad4 ANYPS5_REQUIRE_DISPLAY=1 bash <main checkout>/.git/info/tools/run_tests.sh '^(pad_keyboard_mouse)$' pad_keyboard_mouse_tests ``` Output: ``` BUILD-EXIT 0 1/1 Test #3880: pad_keyboard_mouse ............... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` Overlap: pr_overlap fails closed on 45 PRs that share files. The identifier scan of their added lines (MOUSE_TOUCHPAD, mouseTouch, touchAt, SetMouseTouchpad) finds none. No open PR implements the same functions. Not verified: - A physical touchpad or a real window focus. The unit test drives the keyboard-mouse class directly. - Games: nothing was run with the option on. - Windows and macOS: not built. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17608
No description provided.