feat(libScePad): accept scePadSetAngularVelocityDeadbandState when enabling #2288

Closed
Pedroj-64 wants to merge 1 commit from upstream-pr/2288 into main
Pedroj-64 commented 2026-10-09 14:43:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-09T14:43:14Z.


What

scePadSetAngularVelocityDeadbandState(handle, true) threw NotImplemented_nid_no_patch, so a title that enables the deadband stopped at that call. It now validates the handle and returns SCE_OK for both values. The enable flag is ignored and listed in TechnicalDebt: no deadband is applied to the host gyro values.

Tested

Linux, guest_pad ctest: passes, now also calling the function with true. tools/check_conventions.py --base upstream/main passes. Not tested with a title.

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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4801962406 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288). Originally posted by [Pedroj-64](https://github.com/Pedroj-64) on 2026-10-09T14:43:14Z. --- ### What `scePadSetAngularVelocityDeadbandState(handle, true)` threw `NotImplemented_nid_no_patch`, so a title that enables the deadband stopped at that call. It now validates the handle and returns `SCE_OK` for both values. The enable flag is ignored and listed in TechnicalDebt: no deadband is applied to the host gyro values. ### Tested Linux, `guest_pad` ctest: passes, now also calling the function with `true`. `tools/check_conventions.py --base upstream/main` passes. Not tested with a title. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Pedroj-64 commented 2026-10-09 14:58:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-09T14:58:46Z.


Not tested on Windows. The change does not touch platform-specific code (it only stops scePadSetAngularVelocityDeadbandState from throwing when enabled and validates the handle), and guest_pad runs on the Windows CI job.

If a title is known to call this with true, I can add its trace here. The enable flag is ignored on purpose and listed in TechnicalDebt until the console's deadband behaviour is known.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6083461445 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288#issuecomment-6083461445). Originally posted by [Pedroj-64](https://github.com/Pedroj-64) on 2026-10-09T14:58:46Z. --- Not tested on Windows. The change does not touch platform-specific code (it only stops `scePadSetAngularVelocityDeadbandState` from throwing when enabled and validates the handle), and `guest_pad` runs on the Windows CI job. If a title is known to call this with `true`, I can add its trace here. The enable flag is ignored on purpose and listed in TechnicalDebt until the console's deadband behaviour is known.
github-actions[bot] commented 2026-10-09 15:29:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T15:29:29Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#2306 core/libs/prx/libScePad/Export.cpp L192
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6083991890 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288#issuecomment-6083991890). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T15:29:29Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2306 | `core/libs/prx/libScePad/Export.cpp` [L192](https://github.com/boykopovar/AnyPS5/blob/8b393b6e9a8ade9188d4f74a0293e0efd9828597/core/libs/prx/libScePad/Export.cpp#L192) | | |
popcoder565 commented 2026-10-09 15:47:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:47:45Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head 3eb7d413, merged onto main d70b8998 in one build with 38 other PRs that had no Windows run.

  • This PR's tests pass: guest_pad. None of them reported skipping a case.
  • Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there).

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084292778 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288#issuecomment-6084292778). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T15:47:45Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `3eb7d413`, merged onto `main` d70b8998 in one build with 38 other PRs that had no Windows run. - This PR's tests pass: `guest_pad`. None of them reported skipping a case. - Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there). No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
Pedroj-64 commented 2026-10-09 15:58:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-09T15:58:26Z.


Thanks @popcoder565 for the native Windows run: guest_pad passes with no skipped cases, which covers what was missing. On the overlap with #2306 in Export.cpp L192: I will review it and adjust this PR if needed, depending on what the maintainers decide.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084474495 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288#issuecomment-6084474495). Originally posted by [Pedroj-64](https://github.com/Pedroj-64) on 2026-10-09T15:58:26Z. --- Thanks @popcoder565 for the native Windows run: `guest_pad` passes with no skipped cases, which covers what was missing. On the overlap with #2306 in `Export.cpp` L192: I will review it and adjust this PR if needed, depending on what the maintainers decide.
Pedroj-64 commented 2026-10-09 15:59:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-09T15:59:24Z.


I reviewed #2306: it implements the real deadband (zeroes components below 0.01 rad/s in ReadState) and changes the same scePadSetAngularVelocityDeadbandState line as this PR, so they are mutually exclusive. #2306 covers everything this one does, with real behaviour instead of ignoring the flag. I leave the decision to the maintainers; if they prefer #2306, I will close this PR. If this one is merged first, #2306 needs a rebase on top of it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084491062 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288#issuecomment-6084491062). Originally posted by [Pedroj-64](https://github.com/Pedroj-64) on 2026-10-09T15:59:24Z. --- I reviewed #2306: it implements the real deadband (zeroes components below 0.01 rad/s in `ReadState`) and changes the same `scePadSetAngularVelocityDeadbandState` line as this PR, so they are mutually exclusive. #2306 covers everything this one does, with real behaviour instead of ignoring the flag. I leave the decision to the maintainers; if they prefer #2306, I will close this PR. If this one is merged first, #2306 needs a rebase on top of it.
oneandonlydean commented 2026-10-09 20:11:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:11:23Z.


Closing: no title is shown enabling the deadband on main, and a silent stub needs one that stops there. Please reopen with the title ID and the log line if you find one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088462723 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2288#issuecomment-6088462723). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T20:11:23Z. --- Closing: no title is shown enabling the deadband on main, and a silent stub needs one that stops there. Please reopen with the title ID and the log line if you find one.

Pull request closed

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!2288
No description provided.