feat(pad): queue timed controller button sequences #3998

Merged
MrMha merged 1 commit from upstream-pr/3998 into main 2026-10-20 15:08:31 +00:00
MrMha commented 2026-10-11 21:08:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-11T21:08:39Z.


What

Add timed controller button sequences through tools/pad_timeline.py and APS5_PAD_TIMELINE commands. Validate ordered non-overlapping events, repetition, the one-hour duration limit and the 4096-event bound before replacing the command file. Controller reads evaluate each event and release; a new pulse or timeline replaces the remaining schedule.

Integrate current main's native filesystem paths and touchpad-half inputs for both pulses and timeline events. Timeline replacement retains an existing POSIX command file's mode and, when privileged, its owner/group, matching the pulse helper.

Tested

macOS 27.0.1 arm64 / AppleClang 21, based on main 3ddbc4accc08d317bc17ed18166cfe7c235e13b6. Rebased the CMake registration conflict while retaining main's new shader_ir_use_rewrite target and both controller registrations. Timeline instructions now live in the input guide, linked from usage, avoiding the competing usage-section insertions in #7298, #7685 and #3786.

Fresh Release relinker-only build: all 202 portable CTest cases pass, including pad_command_file, pad_input, pad_timeline and shader_ir_use_rewrite. The registration audit finds 26 test executables with none omitted. Both Python 3.12.14 and Apple Python 3.9.6 run all 26 pulse/timeline tests successfully (one existing privileged-user test skipped on each). Conventions and whitespace checks pass on the final tree.

Manually reviewed the bot's shared CMake, usage and input-guide changes on branches that still conflict with main. They concern other tests, native Apple builds/input configuration, screenshots, graphics/cache settings, profiles and unrelated usage sections; none implements these timeline commands. #6044's test-label conversion must preserve the new controller registrations when integrated. This is a source review, not a combined runtime build of those conflicted branches. Clean Git merges were verified with #7298, #7685 and #3786 after relocating the instructions.

These are host parser/helper checks. Full libScePad/title execution and GPU testing were not performed locally. Full runtime CI needs a maintainer-dispatched Build workflow.

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 (OpenAI Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822362235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3998). Originally posted by [MrMha](https://github.com/MrMha) on 2026-10-11T21:08:39Z. --- ### What Add timed controller button sequences through `tools/pad_timeline.py` and `APS5_PAD_TIMELINE` commands. Validate ordered non-overlapping events, repetition, the one-hour duration limit and the 4096-event bound before replacing the command file. Controller reads evaluate each event and release; a new pulse or timeline replaces the remaining schedule. Integrate current main's native filesystem paths and touchpad-half inputs for both pulses and timeline events. Timeline replacement retains an existing POSIX command file's mode and, when privileged, its owner/group, matching the pulse helper. ### Tested macOS 27.0.1 arm64 / AppleClang 21, based on main `3ddbc4accc08d317bc17ed18166cfe7c235e13b6`. Rebased the CMake registration conflict while retaining main's new `shader_ir_use_rewrite` target and both controller registrations. Timeline instructions now live in the input guide, linked from usage, avoiding the competing usage-section insertions in #7298, #7685 and #3786. Fresh Release relinker-only build: all 202 portable CTest cases pass, including `pad_command_file`, `pad_input`, `pad_timeline` and `shader_ir_use_rewrite`. The registration audit finds 26 test executables with none omitted. Both Python 3.12.14 and Apple Python 3.9.6 run all 26 pulse/timeline tests successfully (one existing privileged-user test skipped on each). Conventions and whitespace checks pass on the final tree. Manually reviewed the bot's shared CMake, usage and input-guide changes on branches that still conflict with main. They concern other tests, native Apple builds/input configuration, screenshots, graphics/cache settings, profiles and unrelated usage sections; none implements these timeline commands. #6044's test-label conversion must preserve the new controller registrations when integrated. This is a source review, not a combined runtime build of those conflicted branches. Clean Git merges were verified with #7298, #7685 and #3786 after relocating the instructions. These are host parser/helper checks. Full libScePad/title execution and GPU testing were not performed locally. Full runtime CI needs a maintainer-dispatched Build workflow. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 (OpenAI Codex)
MrMha commented 2026-10-13 09:21:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-13T09:21:00Z.


Edited it

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6142401323 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3998#issuecomment-6142401323). Originally posted by [MrMha](https://github.com/MrMha) on 2026-10-13T09:21:00Z. --- Edited it
github-actions[bot] commented 2026-10-15 12:06:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:06:02Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 674 CMakeLists.txt
docs/user/INPUT_MAPPING.md
PR 1835 CMakeLists.txt
PR 5021 CMakeLists.txt
docs/user/USAGE.md
PR 5925 docs/user/USAGE.md
PR 6044 CMakeLists.txt
PR 6171 docs/user/USAGE.md
PR 6788 docs/user/USAGE.md
PR 6946 CMakeLists.txt
docs/user/USAGE.md
PR 6947 CMakeLists.txt
docs/user/USAGE.md
PR 7201 CMakeLists.txt
PR 7499 docs/user/INPUT_MAPPING.md
PR 7642 CMakeLists.txt
docs/user/USAGE.md
PR 7800 docs/user/USAGE.md
PR 7881 docs/user/INPUT_MAPPING.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191638841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3998#issuecomment-6191638841). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:06:02Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 674](https://www.github.com/boykopovar/AnyPS5/pull/674) | `CMakeLists.txt`<br>`docs/user/INPUT_MAPPING.md` | | [PR 1835](https://www.github.com/boykopovar/AnyPS5/pull/1835) | `CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `CMakeLists.txt`<br>`docs/user/USAGE.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/user/USAGE.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `CMakeLists.txt` | | [PR 6171](https://www.github.com/boykopovar/AnyPS5/pull/6171) | `docs/user/USAGE.md` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `docs/user/USAGE.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `CMakeLists.txt`<br>`docs/user/USAGE.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `CMakeLists.txt`<br>`docs/user/USAGE.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `CMakeLists.txt` | | [PR 7499](https://www.github.com/boykopovar/AnyPS5/pull/7499) | `docs/user/INPUT_MAPPING.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `CMakeLists.txt`<br>`docs/user/USAGE.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `docs/user/USAGE.md` | | [PR 7881](https://www.github.com/boykopovar/AnyPS5/pull/7881) | `docs/user/INPUT_MAPPING.md` |
MrMha commented 2026-10-15 13:27:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-15T13:27:24Z.


Rebased onto main 2e5dd5aa144af1bf90a214a6341bf3e1b4e6d47a as e7735e6120555c18c63ac915220e57b73ba2bf67. All six changed files apply cleanly; existing main registrations and documentation are retained. The description now records this head's fresh checks instead of carrying forward old CI results as current evidence.

macOS 27.0.1 arm64 / AppleClang 21 / Python 3.12.14, Release relinker-only build:

cmake --build <build> --target pad_command_file_tests
ctest --test-dir <build> -R '^(pad_command_file|pad_input|pad_timeline)$' --output-on-failure -V

All 3/3 registrations pass. Timeline Python: 13 pass. Pad-input Python: 9 pass, one explicit Windows-quoting skip. The C++ fixture runs the timeline boundaries, invalid/truncated/overlapping input, sequence replacement, stale commands, time overflow boundaries, and legacy button/stick transitions. The same C++ fixture compiled against unchanged main's header builds and fails with input command assertion failed; the fixed header was then restored. Trusted main conventions and whitespace checks pass on the published tree.

I manually inspected the bot-listed CMake/usage changes. The other branches concern native Apple integration/packaging, screenshots, archives, pipeline/memory documentation, mimalloc and test-label restructuring, not these timeline semantics. This is a source review, not a combined build of all those branches. For #6044, preserve the timeline registrations when converting registrations to component labels.

No title, full runtime or GPU execution was performed on this head. A collaborator can dispatch the full Build workflow if the full runtime tests are required.

AI-assisted: yes (OpenAI Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6193204311 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3998#issuecomment-6193204311). Originally posted by [MrMha](https://github.com/MrMha) on 2026-10-15T13:27:24Z. --- Rebased onto main `2e5dd5aa144af1bf90a214a6341bf3e1b4e6d47a` as `e7735e6120555c18c63ac915220e57b73ba2bf67`. All six changed files apply cleanly; existing main registrations and documentation are retained. The description now records this head's fresh checks instead of carrying forward old CI results as current evidence. macOS 27.0.1 arm64 / AppleClang 21 / Python 3.12.14, Release relinker-only build: ```sh cmake --build <build> --target pad_command_file_tests ctest --test-dir <build> -R '^(pad_command_file|pad_input|pad_timeline)$' --output-on-failure -V ``` All **3/3** registrations pass. Timeline Python: 13 pass. Pad-input Python: 9 pass, one explicit Windows-quoting skip. The C++ fixture runs the timeline boundaries, invalid/truncated/overlapping input, sequence replacement, stale commands, time overflow boundaries, and legacy button/stick transitions. The same C++ fixture compiled against unchanged main's header builds and fails with `input command assertion failed`; the fixed header was then restored. Trusted main conventions and whitespace checks pass on the published tree. I manually inspected the bot-listed CMake/usage changes. The other branches concern native Apple integration/packaging, screenshots, archives, pipeline/memory documentation, mimalloc and test-label restructuring, not these timeline semantics. This is a source review, not a combined build of all those branches. For #6044, preserve the timeline registrations when converting registrations to component labels. No title, full runtime or GPU execution was performed on this head. A collaborator can dispatch the full Build workflow if the full runtime tests are required. AI-assisted: yes (OpenAI Codex).
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!3998
No description provided.