feat(pad): drive the gyro from the mouse while captured with ANYPS5_MOUSE_GYRO #17625

Merged
MarcZX10 merged 32 commits from upstream-pr/17625 into main 2026-11-14 00:34:30 +00:00
MarcZX10 commented 2026-11-09 04:26:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T04:26:51Z.


What

With ANYPS5_MOUSE_GYRO=1, while the mouse is captured (mouse mode), its movement becomes the pad's gyro: counts per second times 0.001 rad, so 1000 counts in a second is 1 rad/s. The gyro stays idle when the mouse is still. The option is off by default.

Stacked on #17608 (the mouse touchpad): this branch contains its commits.

Tested

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

flock <build lock> env VERIFY_DIR=<worktree> VERIFY_TAG=gyro1 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.03 sec
100% tests passed, 0 tests failed out of 1

Overlap: pr_overlap fails closed on shared files. The identifier scan of the flagged PRs (MOUSE_GYRO, SetMouseGyro, gyroCounts, MouseGyroRadiansPerCount) finds none. No open PR implements the same functions.

Not verified:

  • A real controller: the scale is not calibrated against one, and the accelerometer stays at rest.
  • Games: nothing was run with the option on.

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: #17608
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5218713673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17625). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T04:26:51Z. --- ### What With `ANYPS5_MOUSE_GYRO=1`, while the mouse is captured (mouse mode), its movement becomes the pad's gyro: counts per second times 0.001 rad, so 1000 counts in a second is 1 rad/s. The gyro stays idle when the mouse is still. The option is off by default. Stacked on #17608 (the mouse touchpad): this branch contains its commits. ### Tested Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. Head `59e7ed8831`: ``` flock <build lock> env VERIFY_DIR=<worktree> VERIFY_TAG=gyro1 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.03 sec 100% tests passed, 0 tests failed out of 1 ``` Overlap: pr_overlap fails closed on shared files. The identifier scan of the flagged PRs (MOUSE_GYRO, SetMouseGyro, gyroCounts, MouseGyroRadiansPerCount) finds none. No open PR implements the same functions. Not verified: - A real controller: the scale is not calibrated against one, and the accelerometer stays at rest. - Games: nothing was run with the option on. ### 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: #17608 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
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!17625
No description provided.