feat(libSceVideoOut): add Toggle and Turbo modes to pad button bindings #20016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20016"
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-14T11:52:58Z.
What
Adds two modifiers for pad button bindings in
anyps5-input.ini:Cross = TOGGLE KEY:Flatches the pad button on at each new press and off at the next one.Cross = TURBO KEY:Fpulses the pad button while the key is held: on for the first half of each period, off for the second half. Each press restarts the pulse.TurboRateHzsets the pulses per second of aTURBObinding: a number from 1 to 30, default 10.Both modifiers apply only to pad buttons. Other actions, the mouse wheel and
PAD:sources are rejected. Losing the window focus clears toggled buttons, as it already releases held keys. The user documentation for both is indocs/user/INPUT_MAPPING.md.The change is four commits, each a separate unit: the Toggle mode, the Turbo mode, the
TurboRateHzsetting, and the documentation.Tested
c7e91485bf(rebased onto currentmain356f09ab22): archive build of the head, ninja targetspad_input_mapping_testsandpad_keyboard_mouse_tests, thenctest -R 'pad_input_mapping|pad_keyboard_mouse'. Result: configure OK, syntax check of changed sources OK, build exit 0,pad_input_mappingpassed andpad_keyboard_mousepassed (2 of 2).c3c1cc217c(commit 1) and4546e0320b(commit 2). The rebase applied without conflicts.python3 tools/check_conventions.py --base upstream/main: all checks passed.git diff --check upstream/main...HEAD: clean.ctestsuite, a Windows build, GPU or Vulkan tests (this change does not touch them), and a manual run with a real keyboard and controller. No negative control was run; the tests exercise the press, release, focus-loss and rate paths through the existing simulation harness intests/KeyboardMouse.cpp.Overlap
tools/pr_overlap.py --branch feat/input-toggle-turbofailed closed: PR #19538 (SDLButton:controller button remapping, open) shares four files with this branch. Manual comparison, from its diff:core/libs/prx/libScePad/include/InputMapping.hpp,core/libs/prx/libSceVideoOut/src/InputMapping.cpp,core/libs/prx/libSceVideoOut/tests/InputMapping.cpp,docs/user/INPUT_MAPPING.md.SDLButton:handling inapplyInputStream, acontrollerButtonsfield toInputConfiguration, and changes inPadInput.cppandtests/PadSdl.cpp. This PR does not touch those parts.InputModefield toInputBinding, aTOGGLE/TURBOprefix inparseBinding, aTurboRateHzsetting, and changes inKeyboardMouse. #19538 does not touch those parts.main()lists and in the docs, so whichever PR lands second needs a small rebase.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-03T18:07:03Z.
Review: COMMENTED
Actionable comments
e8a40c00-2d26-48e4-a679-bc077ff13a72Reviewing files that changed from the base of the PR and between
2bf6ec6143and2e348e6d3c.core/libs/prx/libScePad/include/InputMapping.hppcore/libs/prx/libScePad/include/KeyboardMouse.hppcore/libs/prx/libScePad/include/PadInputTypes.hppcore/libs/prx/libSceVideoOut/src/InputMapping.cppcore/libs/prx/libSceVideoOut/src/KeyboardMouse.cppcore/libs/prx/libSceVideoOut/tests/InputMapping.cppcore/libs/prx/libSceVideoOut/tests/KeyboardMouse.cppdocs/user/INPUT_MAPPING.mdtools/input-mapper/i18n.jstools/input-mapper/tests/i18n.test.jstools/input-mapper/tests/mapping.test.jstools/input-mapper/validation.jsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T18:11:43Z.
Review: COMMENTED
The browser tool can import a
TURBObinding, butrenderBindingdisplays it as an ordinary key or mouse binding and gives the user no way to change its mode. If an imported turbo row is switched toWHEEL, the change handler retainsmode: 'TURBO'. The row then fails export validation, and the user has to delete it to make a normal wheel binding. Can the editor show the mode and let users change it?All 105 input-mapper Node tests passed at
2e348e6d3c. They cover parser round-tripping, while the editor path above is from source inspection. The description'sTOGGLE KEY:example also conflicts with the current parser and documentation, which useToggleActions.The paired Linux build also passed
pad_input_mapping,pad_keyboard_mouse, andagc_driver_gcn_scalar_buffer_baseon6c6b29320fand with2e348e6d3cintegrated. Both lavapipe logs show Khronos validation 1.4.369 inserted, with no missing-layer warnings orVUID-errors.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.