feat(libScePad): answer the tracker DualShock 4, Blaster and Move queries #9664
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9664"
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 krishalivaibhav on 2026-10-22T07:26:31Z.
What
scePadIsDS4Connected,scePadIsBlasterConnectedandscePadIsMoveConnectedthrewnot implemented. They now return false for any handle.docs/dev/debt/libScePad.md). So no DualShock 4, Blaster or Move controller is ever behind a handle.bool (int32_t handle), as already declared inExport.cpp.docs/dev/debt/libScePad.md.libScePad/Export.cpp,GuestPad.cppor the debt file, but none of them touches these three functions.tools/pr_overlap.pycould not finish here: fetching every open PR's refs filled the disk twice. I checked each of those PR diffs by hand instead.Tested
Linux: Ubuntu x86-64 chroot in a Lima VM on macOS (Apple Silicon), at
81ae747aconmaind6eafa54d. I builtguest_pad_testsandguest_pad_vibration_mode_testsand ranctest -R '^guest_pad': 2/2 pass.guest_padnow runsCheckTrackerDevices(). It calls each of the three functions with the open handle and with an invalid one and requires false. Onmainthe first call throwsnot implemented, so the test fails there.tools/check_conventions.py --base origin/mainpasses.tools/progress.pygoes from 4,834 to 4,837 done functions out of 11,181 (43.23% to 43.26%).Windows: not built. No title was run.
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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-22T07:27:19Z.
Progress report (
d6eafa5→81ae747)📈 System libraries: 43.26% (+0.03%, +3 implemented functions)
✅ 3 implemented
scePadIsBlasterConnectedscePadIsDS4ConnectedscePadIsMoveConnected⚪ 3 behaviourally empty (constant return or throw)
scePadIsBlasterConnectedscePadIsDS4ConnectedscePadIsMoveConnectedImported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:34:04Z.
Reviewed; this checks out. Answering all three tracker queries with an unconditional
falseis the only answer consistent with what the module already reports elsewhere:scePadGetInfo_nid_postfixsetsslot.deviceType = PAD_DEVICE_TYPE_DUAL_SENSE(Export.cpp:213) and the device-class promotions reportPAD_DEVICE_CLASS_STANDARD, and the debt file's Touchpad-resolution entry already records that the library reports one DualSense to every title. So no DualShock 4, Blaster or Move device can ever be behind a handle here, andfalsefor every handle is not an invented value but a consequence of the established pad table. The new debt entry states exactly that and honestly marks the unmeasured part (invalid-handle answer), the signatures were alreadybool (int32_t)from the pending-export declarations so nothing is invented there either, and the test reuses the file's existing invalid-handle pattern (handle + 1, as inCheckAccessibilityControllerState) with no new registration needed.Two notes, neither blocking:
GuestPad.cpptoo, so worth watching its first green run before merge.pr_overlap.pyran out of disk — a maintainer re-run ofpython3 tools/pr_overlap.py --branch <branch>would confirm that result cheaply.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T09:07:09Z.
Review: CHANGES_REQUESTED
The unconditional
falseanswers are consistent with the existing emulation, which exposes a single DualSense rather than DS4, Move or Blaster devices. The invalid-handle uncertainty is explicitly documented, and the regression checks both a valid and invalid handle. Exact-head diff-check and conventions pass; hosted eligibility/intake/labels/report pass. Linux/Windows product build jobs are skipped, so the 2/2guest_padrun is author-reported. The existing open PR overlaps are acknowledged in the description; I did not find a behavior overlap in the listed changes.I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
Imported from boykopovar/AnyPS5. Originally posted by krishalivaibhav on 2026-10-22T09:22:47Z.
Thanks @MarcZX10, and @fogydes for the review. That's fair: none of the titles I'm testing reaches these. I checked the original modules of Balatro (PPSA21402), Don't Starve Together (PPSA02070) and Vampire Survivors (PPSA21703) for the NIDs of
scePadIsDS4Connected,scePadIsBlasterConnectedandscePadIsMoveConnected: none imports them (all three importscePadOpen). I'm converting this to a draft and holding it until a title needs these, and I'll take library work from functions a title actually stops on, with the title ID and log line.(For the record, the
guest_padruns were in an x86-64 Ubuntu chroot in a Lima VM, not on a Steam Deck.)AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T14:34:37Z.
Review: APPROVED
Correction: my earlier changes-requested review was based only on the mistaken queue hold tied to #5239. I found no code blocker in this PR; PRs may continue to be submitted and will be handled in due course.