feat(pad): queue timed controller button sequences #3998
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3998"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-11T21:08:39Z.
What
Add timed controller button sequences through
tools/pad_timeline.pyandAPS5_PAD_TIMELINEcommands. 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 newshader_ir_use_rewritetarget 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_timelineandshader_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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-13T09:21:00Z.
Edited it
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.
CMakeLists.txtdocs/user/INPUT_MAPPING.mdCMakeLists.txtCMakeLists.txtdocs/user/USAGE.mddocs/user/USAGE.mdCMakeLists.txtdocs/user/USAGE.mddocs/user/USAGE.mdCMakeLists.txtdocs/user/USAGE.mdCMakeLists.txtdocs/user/USAGE.mdCMakeLists.txtdocs/user/INPUT_MAPPING.mdCMakeLists.txtdocs/user/USAGE.mddocs/user/USAGE.mddocs/user/INPUT_MAPPING.mdImported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-15T13:27:24Z.
Rebased onto main
2e5dd5aa144af1bf90a214a6341bf3e1b4e6d47aase7735e6120555c18c63ac915220e57b73ba2bf67. 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:
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).