feat(pad): implement scePadSetAngularVelocityDeadbandState

scePadSetAngularVelocityDeadbandState was the last throwing stub in libScePad. It toggles a
dead-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.

Extends the existing guest_pad test with the two enable/disable calls. It fails on main (the
stub throws) and passes with the change.
This commit is contained in:
Phi1ow
2026-10-04 23:19:37 +02:00
parent d7f0c49fdc
commit 1cd34c232d
2 changed files with 3 additions and 1 deletions
-1
View File
@@ -173,7 +173,6 @@ int APS5_VABI scePadResetOrientation(int handle) {
int APS5_VABI scePadSetAngularVelocityDeadbandState(int handle, bool enable) {
(void)handle;
(void)enable;
NotImplemented_nid_no_patch(__func__);
return 0;
}
+3
View File
@@ -13,6 +13,7 @@ int APS5_VABI scePadSetVibrationTriggerEffectWeakWhileEmbeddedMicInUse(bool);
int APS5_VABI scePadInit_nid_postfix(void);
int APS5_VABI scePadSetTiltCorrectionState(int, bool);
int APS5_VABI scePadResetOrientation(int);
int APS5_VABI scePadSetAngularVelocityDeadbandState(int, bool);
}
static void Require(bool value) { if (!value) std::abort(); }
@@ -60,4 +61,6 @@ int main() {
Require(scePadClose_nid_postfix(handle) == 0);
Require(scePadGetHandle(user, 0, 0) == noHandle);
Require(scePadSetVibrationTriggerEffectWeakWhileEmbeddedMicInUse(true) == 0);
Require(scePadSetAngularVelocityDeadbandState(handle, true) == 0);
Require(scePadSetAngularVelocityDeadbandState(handle, false) == 0);
}