feat(pad): reload the input mapping when its file changes #17596
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17596"
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 MarcZX10 on 2026-11-09T00:22:39Z.
What
With
ANYPS5_INPUT_WATCH=1, the input mapping file and the title's profile are checked about once a second on a background thread (modification time and size). A change is reloaded only after it has stayed the same for one check, so a file that is still being written is not read half-way.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
d4be196be3:Output:
Rebased head
4da405bab61fa09d8c48793ee2124bcfa34949ebon basef83d7e1f5444bb813393c10af8422b4c33de31f9(Linux, GCC 12.2.0, system SDL2 2.26.5). Focused CPU-only checks run after the rebase:Both tests passed. Syntax-only checks also passed for
tests/InputMapping.cpp,src/InputMapping.cpp(with-Wall -Wextra -Werror), andsrc/PadInput.cpp. No GPU or console test was run on the rebased head.Overlap: pr_overlap fails closed on 45 PRs that share files. The identifier scan (InputBinding, wheelDirection, ReloadInputMapping, InputMappingWatch, PadChord, padButtons, ANYPS5_INPUT_WATCH, PAD:) finds only #17149 and #17500 (the PR this series replaces). No open PR implements the same functions.
Not verified:
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)