docs(debt): note how a title calls scePadSetAngularVelocityDeadbandState #10119

Merged
xXPBSXx merged 1 commit from upstream-pr/10119 into main 2026-10-26 14:19:43 +00:00
xXPBSXx commented 2026-10-23 09:57:59 +00:00 (Migrated from github.com)

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


What

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 port slot. 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.

Changed: docs/dev/debt/libScePad.md. No code change.

Method: Ghidra 12.1.4 headless on the unwrapped executable of the title named; the addresses are the call sites in that executable as Ghidra maps it, read from the instruction listing (static reading only, nothing run on a console). The listing and decompiled code are game code and are not attached.

Fixes: #10118

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; git merge-tree against main is clean. Every number in the sentence was recounted against the instruction listing. Not built, not run, no title run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes #10118
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4981021010 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10119). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-23T09:57:59Z. --- ### What 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 port slot. 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. Changed: `docs/dev/debt/libScePad.md`. No code change. Method: Ghidra 12.1.4 headless on the unwrapped executable of the title named; the addresses are the call sites in that executable as Ghidra maps it, read from the instruction listing (static reading only, nothing run on a console). The listing and decompiled code are game code and are not attached. Fixes: #10118 ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes; `git merge-tree` against `main` is clean. Every number in the sentence was recounted against the instruction listing. Not built, not run, no title run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes #10118 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-23 10:19:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T10:19:48Z.

Review: COMMENTED


I reviewed exact head f5f1dd8f4734dce2254734c17837cd883cace71b and issue #10118. The title call-site report distinguishes observed argument/control-flow facts from the threshold/default inferred from the PC libScePad implementation, and explicitly says those values are not console measurements. This is a focused debt-note update. Local exact-head diff-check and current-main conventions pass; hosted eligibility, conventions, intake and labels checks pass. No runtime test is applicable. The overlap bot flags shared debt-file edits in #7881/#9878 and uncomparable PRs; the actual added call-site observation is distinct, so I found no duplicated implementation. No blocking issue found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5626917148 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10119#pullrequestreview-5626917148). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T10:19:48Z. **Review:** COMMENTED --- I reviewed exact head f5f1dd8f4734dce2254734c17837cd883cace71b and issue #10118. The title call-site report distinguishes observed argument/control-flow facts from the threshold/default inferred from the PC libScePad implementation, and explicitly says those values are not console measurements. This is a focused debt-note update. Local exact-head diff-check and current-main conventions pass; hosted eligibility, conventions, intake and labels checks pass. No runtime test is applicable. The overlap bot flags shared debt-file edits in #7881/#9878 and uncomparable PRs; the actual added call-site observation is distinct, so I found no duplicated implementation. No blocking issue found.
MarcZX10 commented 2026-10-23 12:51:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T12:51:36Z.

Review: APPROVED


Re-reviewed exact head 6dc1f045b2ae8f6d0834c64337b26e4a1971a99a and linked issue #10118. The current diff still adds only the title call-site evidence to the existing deadband debt entry; it distinguishes observed arguments/control flow from the threshold/default inferred from the PC implementation. Exact-head eligibility, conventions and labels checks pass. Documentation-only; no runtime test applies. Existing shared debt-file overlap is non-duplicative; keep the stated integration order current if a conflicting entry lands first.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5628457492 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10119#pullrequestreview-5628457492). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T12:51:36Z. **Review:** APPROVED --- Re-reviewed exact head `6dc1f045b2ae8f6d0834c64337b26e4a1971a99a` and linked issue #10118. The current diff still adds only the title call-site evidence to the existing deadband debt entry; it distinguishes observed arguments/control flow from the threshold/default inferred from the PC implementation. Exact-head eligibility, conventions and labels checks pass. Documentation-only; no runtime test applies. Existing shared debt-file overlap is non-duplicative; keep the stated integration order current if a conflicting entry lands first.
Sign in to join this conversation.
No reviewers
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!10119
No description provided.