Repository navigation
feat(libScePad): read per-title input profiles beside the shared input file - #7499
4 commits merged into
Conversation
|
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.
|
|
Windows run, since the description lists Windows as not run. Windows 11 26300, Ryzen AI 7 350, WinLibs GCC 15.2.0 r7, Release, The build is clean. AI-assisted |
|
@LeandroLP23 thanks for the Windows run. The conflict with #7496 to #7498 is textual: all four add rows to the default-bindings table in AI-assisted: yes (Claude Code) |
|
One small change before merge: the example profile name in The rest reads well: the loop moved unchanged, each file keeps its own override state, and |
# Conflicts: # core/libs/prx/libSceVideoOut/tests/InputMapping.cpp
# Conflicts: # core/libs/prx/libSceVideoOut/tests/InputMapping.cpp # docs/user/INPUT_MAPPING.md
|
Rebase handoff — rebased onto current Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, To pick it up: Head is |
|
@blawesom thanks for the rebase. The code and tests come through exactly as reviewed, and main's stick-modifier and keyboard-ramp tests are all still there and called next to the profile tests. One fix is needed in It should read: @AlxcBTW this is a real rebase (it doesn't contain your current head), so |
|
@AlxcBTW we prepared the small change from our earlier review but couldn't push it to your branch (this fork doesn't allow maintainer edits), so here it is to apply yourself. It only replaces the real title ID in the examples with the fictional
Or run, from the repository root: |
✅ NVIDIA GPU test: passedPR head
Validation IDs already present on main (3 IDs in 125 tests)Skipped (8)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Your fork is archived, so we carried this as #14313 with your commits and credit. Thank you! |
08f19f9
What
anyps5-input.ini(or the fileANYPS5_INPUT_CONFIGnames) applies to every title. Mouse sensitivity, curve and bindings that suit one title do not suit the next, and the only way to switch is to edit the file or setANYPS5_INPUT_CONFIGfor each launch.Pad::LoadInputMapping(titleId)now reads a second file after the shared one:anyps5-input.<TITLEID>.iniin the same directory as the shared file (beside the executable, or beside the fileANYPS5_INPUT_CONFIGnames), where<TITLEID>is the running title's ID fromGetAppTitleId_nid_postfix. The profile has the same format and overrides only what it lists: an action it names replaces the bindings from the shared file (and the built-in ones), a setting it names replaces the shared value, everything else stays. A missing profile is not an error; an invalid line in one reports the profile's path and line like the shared file does. A title ID is used only if it has at most 32 characters of letters, digits,_and-(Pad::InputProfileName), so an ID can never name a path outside the directory.The parsing loop moved unchanged into one function (
loadInputFile) that both files use; each file keeps its own "first line replaces, later lines add" and "setting given twice" state. With no profile, or no title ID, the result is the same as before.docs/user/INPUT_MAPPING.mdhas a "Per-game profiles" section.Tested
-R '^(pad_|guest_pad|video_out_mouse|mouse_input|keyboard_input)'): 9 of 9 passed, among thempad_input_mapping. Not run on Windows. An earlier run of the previous head (39113712815) failed to compile (InputBindingunqualified in the moved loop) and was fixed before this one.pad_input_mapping: profile names (valid IDs, empty, path separator, dot, over the length limit); a profile overrides and adds settings and replaces the bindings of an action it lists; another title ID and no title ID keep the shared file; a partial profile keeps what it does not list; a profile may set a setting the shared file also sets; an invalid profile names its file and line and does not affect other titles.PadInput(GetAppTitleId_nid_postfix, trimmed at the first NUL) is covered only by compiling.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pylists no overlap with a comparable pull request and could not compare feat(input): add native SDL input configuration with ImGui #674, feat(agc,videoout): save the displayed frame as a PNG with a screenshot key #4891 and Macos port #7201 (InputMapping.cpp,PadInput.cpp,InputMapping.hpp, docs); feat(input): add native SDL input configuration with ImGui #674 (an input editor) also changesPadInput.cppandINPUT_MAPPING.md. Based on cdb7ed0.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)