fix(tools): round-trip input mapping settings in the input mapper #11860
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11860"
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 rooklz on 2026-10-27T09:58:28Z.
What
anyps5-input.iniaccepts twelve setting lines next to bindings (LeftStickDeadzone,RightStickDeadzone,MouseSensitivity,MouseVerticalScale,MouseCurve,MouseDeadzoneOffset,MouseMaxSpeed,MouseSmoothingMs,MouseDecayMs,StickModifierScale,KeyboardRampMs,TriggerRampMs);docs/user/INPUT_MAPPING.mddocuments them with examples likeMouseSensitivity = 2.5andStickModifierScale = 0.4.The input mapper rejected every one of those lines at import (
Expected Action = TYPE:VALUE.), so a documented configuration could not be imported at all, and an export from the tool could not carry settings, so a bindings-only round trip dropped them.validation.jsmirrors the native setting table; a test asserts names and order against theInputSettingName{...}array incore/libs/prx/libSceVideoOut/src/InputMapping.cpp, the same way the existing tests mirror the action list and built-in bindings.std::from_charsgrammar (no leading+, no hex, exponent forms accepted).parseInireturns the settings it read,serializewrites them after the bindings in table order, and the app carries them through preview, download, copy, reset and the unsaved-changes tracking. New diagnostics are translated for ar-EG like the existing ones.Tested
npm --prefix tools/input-mapper test: 32 tests pass, 8 new: the native setting-table mirror, a documented-configuration round trip (BOM, CRLF, inline comments), a settings-only import, case canonicalization of setting names, line-numbered refusals for out-of-range and malformed values, the duplicate refusal,serializerefusing invalid settings, and the ar-EG diagnostics.tools/check_conventions.py --base upstream/mainandtools/pr_overlap.pypass; the relinker-only build withBUILD_TESTINGpasses ctest 361/361.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 MarcZX10 on 2026-10-27T10:33:18Z.
Review: COMMENTED
The focused input-mapper suite passes locally (32/32). I found one small native-parity edge case:
parseDeadzonePercentusesstd::from_charsinto a signedint, so-0parses completely to0and passes the native 0–90 range check. I confirmed the host result locally; this PR’s^\\d+$check rejects the sameLeftStickDeadzone = -0input. Could you add a regression case and accept the signed-zero form (while still rejecting negative nonzero values)? This is a non-blocking compatibility note; the rest of the reviewed settings flow looks consistent with the native table and ranges.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T04:22:57Z.
Review: COMMENTED
Reviewed
7a091f0893b1ac50a79c2b5370f2650fd95f8f24— comment; validation remains incomplete. Input settings now round-trip alongside bindings and participate in dirty-state, reset, preview, download and clipboard snapshots. Local Node checks pass, but hosted Windows CI failed.Windows/Node: Node suites pass 33/33 on head and 24/24 on base. The inspected exact-head Windows job timed out in conventions_bom_shebang, check_compile_modes_test_library_directory_values_can_look_like_modes and conventions_env_reference_test_a_check_from_a_subdirectory_reports_the_same_findings. These logs do not establish a mapper defect; obtain a successful rerun. The added native signed-zero assertion and browser interaction were not executed locally.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T17:06:29Z.
Review: APPROVED
Re-reviewed
68b434cca704a7fe4ba158c8a09f567cf8e81e66— approve. Input settings round-trip with bindings and now participate in preview, download/clipboard snapshots, dirty-state and reset. Signed zero deadzones agree with the native parser.Windows/Node: all 33 head and 24 baseline tests pass. Fresh GCC 15.3 Release builds also pass
pad_input_mappingon both pinned revisions, including the new signed-zero assertion. In the actual local browser, importing a synthetic INI preserved three settings (including-0) and the Cross binding in the preview; Reset cleared both settings and bindings. The browser reported a download request, but its download-event wait timed out, so I do not claim the downloaded file was verified. Node serialization tests and source inspection cover that shared serializer.Current-head hosted checks pass. Initial Node runs hit sandbox loopback restrictions and then missing sparse fixtures; both setup issues were corrected before the passing rerun. These are parser/UI checks, not rendering or title execution. No remaining actionable issue was found in this scope.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T06:40:29Z.
Review: APPROVED
Re-checked — new head, looks good
The signed-zero deadzone behavior from my earlier note is corrected and covered on this head.
Reviewed head
68b434cca704a7fe4ba158c8a09f567cf8e81e66against recorded base7fe2b2249b9f7054312cef0fb066ebee4adc25f0; the merge preview onto currentmainis clean and preserves both the PR's translated diagnostics and the separate main translation update. I rannpm test --prefix tools/input-mapperfrom an exact-head archive (33/33),git diff --check, and the conventions check. Hosted Windows and input-mapper jobs pass; Linux is skipped. I did not run a browser or local native build. The native parser accepts-0as zero, matching the new regression; a separate reviewer reports exact-head GCC target builds and browser validation.