fix(pad): accept vibration mode 3 #3727
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3727"
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 mariusyo07 on 2026-10-11T16:03:31Z.
What
Allows vibration mode 3 in
scePadSetVibrationModein libScePad.Broken Sword - Shadow of the Templars: Reforged (PPSA21480, Windows) calls
scePadSetVibrationMode(handle, 3)afterscePadOpenand aborts on failure (#3704):which is
PAD_ERROR_INVALID_ARG.scePadSetVibrationModepreviously accepted only modes 0 to 2.Modes 0 to 3 are now accepted, while 4 and above (and negative values) remain invalid.
guest_padis updated: asserts that mode 3 returns 0 and mode 4 returnsPAD_ERROR_INVALID_ARG.Tested
Export.cppsyntax check passes;GuestPad.cpptest asserts mode 3 is accepted (0) and mode 4 returnsPAD_ERROR_INVALID_ARG(fails onmainwhere mode 3 expectsPAD_ERROR_INVALID_ARG).python3 tools/check_conventions.py --base upstream/main: all checks passed.git diff --check: passes with no whitespace or style warnings.python3 tools/pr_overlap.py --branch fix/pad-vibration-mode-3: no overlap with open pull requests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:56:21Z.
Checked on Linux: build and
guest_padpass, and the updated test fails without the change. The mode is only stored inPadState, so accepting 3 has no other effect.Added one commit: a TechnicalDebt line ("Unknown function info") for the unverified meaning of mode 3, since the only evidence is that PPSA21480 calls it and aborts on failure.
Merging once CI is green.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T22:11:08Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL93-94