feat(pad): trigger emulator actions from pad chords #17597

Merged
MarcZX10 merged 20 commits from upstream-pr/17597 into main 2026-11-12 18:15:45 +00:00
MarcZX10 commented 2026-11-09 00:22:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T00:22:45Z.


What

Pad chords: PAD:Options+R1 (or any set of controller buttons held together) triggers an emulator action such as ToggleFullscreen or ReloadInputMapping. The buttons still reach the title's pad state. Only emulator actions take a chord: a chord on a pad button is refused, and so is an empty or unknown button name.

Stacked on the reload PR: this branch contains its commits.

Tested

Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. Pad tests do not need a display. Head a9bdd90dae:

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

Output:

BUILD-EXIT 0
1/2 Test #3872: pad_input_mapping ................   Passed    0.03 sec
2/2 Test #3878: pad_keyboard_mouse ...............   Passed    0.02 sec
100% tests passed, 0 tests failed out of 2

Overlap: pr_overlap fails closed on 3 PRs. The identifier scan finds only #17149 and #17500 (the PR this series replaces). #17149 (WHEEL:Left and WHEEL:Right) adds wheelTilt to InputBinding and changes the wheel parser in the same files; the two will conflict, and the one merged second must compare wheelTilt too.

Not verified:

  • A real controller and real window focus. The unit tests use the test drivers.
  • Other operating systems: nothing was run on Windows or macOS.
  • Titles: no title was run with these changes.
  • Masking the chord buttons while the chord is held is not done; a chord that uses a button the title also reads still reaches the title.
  • Chords are not dispatched while the IME or a modal dialog captures input.

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: #17595
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5216724623 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17597). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T00:22:45Z. --- ### What Pad chords: `PAD:Options+R1` (or any set of controller buttons held together) triggers an emulator action such as `ToggleFullscreen` or `ReloadInputMapping`. The buttons still reach the title's pad state. Only emulator actions take a chord: a chord on a pad button is refused, and so is an empty or unknown button name. Stacked on the reload PR: this branch contains its commits. ### Tested Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. Pad tests do not need a display. Head `a9bdd90dae`: ``` flock <build lock> env VERIFY_DIR=<worktree> VERIFY_TAG=split-chords ANYPS5_REQUIRE_DISPLAY=1 bash <main checkout>/.git/info/tools/run_tests.sh '^(pad_input_mapping|pad_keyboard_mouse)$' pad_input_mapping_tests pad_keyboard_mouse_tests ``` Output: ``` BUILD-EXIT 0 1/2 Test #3872: pad_input_mapping ................ Passed 0.03 sec 2/2 Test #3878: pad_keyboard_mouse ............... Passed 0.02 sec 100% tests passed, 0 tests failed out of 2 ``` Overlap: pr_overlap fails closed on 3 PRs. The identifier scan finds only #17149 and #17500 (the PR this series replaces). #17149 (WHEEL:Left and WHEEL:Right) adds `wheelTilt` to `InputBinding` and changes the wheel parser in the same files; the two will conflict, and the one merged second must compare `wheelTilt` too. Not verified: - A real controller and real window focus. The unit tests use the test drivers. - Other operating systems: nothing was run on Windows or macOS. - Titles: no title was run with these changes. - Masking the chord buttons while the chord is held is not done; a chord that uses a button the title also reads still reaches the title. - Chords are not dispatched while the IME or a modal dialog captures input. ### 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: #17595 - [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!17597
No description provided.