feat(pad): implement scePadSetAngularVelocityDeadbandState #565
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/565"
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 Phi1ow on 2026-10-04T21:19:41Z.
What
scePadSetAngularVelocityDeadbandStatewas the last throwing stub inlibScePad. It toggles adead-band filter on the controller's angular-velocity (gyro) readings. The reading path does not
apply that optional filter, so the call succeeds and does nothing, as it does in shadPS4.
Tested
Extends the existing
guest_padtest with the enable and disable calls.Built with MinGW-w64 GCC 15.2.0 (the CI toolchain) on Windows 11;
ctest -R guest_padpasses.On
mainthe stub throwsnot implemented, so the test aborts without the change.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 repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T22:38:19Z.
Thanks. The NID recomputes (r44mAxdSG+U is scePadSetAngularVelocityDeadbandState). Two things before it can go in:
scePadSetMotionSensorState,scePadSetTiltCorrectionState,scePadResetOrientation) returnsPAD_ERROR_INVALID_HANDLEfor a handle other thanPAD_HANDLE. This one now returns 0 for any handle. Could it check the handle the same way, with a test row for a bad handle?PadState.cppfillsangular_velocity_x/y/zfrom the controller), so a title that turns the dead band on gets readings the console would have filtered. That changes input, not UI, so CONTRIBUTING's silent-stub exception doesn't cover it. If the dead band threshold is known (a source would help), applying it inReadStatelikeSetTiltCorrectionwould make this exact. Otherwise I'd acceptenable == falseand keep throwing fortrue, so a title that relies on the filter still shows up.PPSA21564 doesn't import this function, so it doesn't affect my runs either way.
Imported from boykopovar/AnyPS5. Originally posted by Phi1ow on 2026-10-04T22:49:34Z.
Done. It now returns
PAD_ERROR_INVALID_HANDLEfor a handle other thanPAD_HANDLE, like the neighbouring setters, and keeps throwing when the dead band is enabled, since the reading path doesn't apply the filter (that would change input, not UI);enable == falsesucceeds, matching the unfiltered readings. Added a bad-handle row to the test. Thanks for the input-vs-UI distinction.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T23:43:56Z.
Thanks, the handle check now matches the neighbouring setters, and
enable == falsesucceeds whiletruestill throws, so a title that needs the filter shows up. The bad-handle row covers the new error.guest_padpasses here and CI is green. Ready to merge from my side.