libScePad debt: note how a title calls scePadSetAngularVelocityDeadbandState #10118

Closed
opened 2026-10-23 09:57:53 +00:00 by xXPBSXx · 0 comments
xXPBSXx commented 2026-10-23 09:57:53 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-23T09:57:53Z.


The debt entry in docs/dev/debt/libScePad.md does not record how a title calls the function. A title call site adds this (call-site addresses included so the reading can be checked).

The changed entry now reads:

scePadSetAngularVelocityDeadbandState (libScePad) - with the deadband on, each angular velocity axis whose magnitude is below 0.017453292 rad/s (1 degree per second) reads as 0, before the orientation is integrated; it starts off. Threshold, per-axis test and default follow duaLib, which reimplements the PC libScePad.dll; the console's threshold is not measured, and the deadband is kept per library rather than per handle since one pad handle exists. One title (PPSA04354) disassembled for this entry calls it once (0xead26b), only when a change bit of its own is set, with a 32-bit value read through a pointer and 0 or 1 taken from the 0x4 bit of a flags value, and ignores the result. The call does not show the threshold or the default.

Fix: branch docs/debt-pad-deadbandstate-title.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5995725513 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10118). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-23T09:57:53Z. --- The debt entry in `docs/dev/debt/libScePad.md` does not record how a title calls the function. A title call site adds this (call-site addresses included so the reading can be checked). The changed entry now reads: > [scePadSetAngularVelocityDeadbandState](../../../core/libs/prx/libScePad/src/PadState.cpp) (libScePad) - with the deadband on, each angular velocity axis whose magnitude is below 0.017453292 rad/s (1 degree per second) reads as 0, before the orientation is integrated; it starts off. Threshold, per-axis test and default follow [duaLib](https://github.com/WujekFoliarz/duaLib/blob/03bad1bea2a36561b520846776f2a07ced6773e0/src/source/duaLib.cpp#L44), which reimplements the PC `libScePad.dll`; the console's threshold is not measured, and the deadband is kept per library rather than per handle since one pad handle exists. One title (PPSA04354) disassembled for this entry calls it once (0xead26b), only when a change bit of its own is set, with a 32-bit value read through a pointer and 0 or 1 taken from the 0x4 bit of a flags value, and ignores the result. The call does not show the threshold or the default. Fix: branch `docs/debt-pad-deadbandstate-title`. AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#10118
No description provided.