Merge pull request #565 from Phi1ow/complete-pad-angular-velocity-deadband

feat(pad): implement scePadSetAngularVelocityDeadbandState
This commit is contained in:
Dean
2026-10-05 12:49:03 +13:00
committed by GitHub
2 changed files with 6 additions and 4 deletions
+3 -4
View File
@@ -171,10 +171,9 @@ 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;
if (handle != PAD_HANDLE) return PAD_ERROR_INVALID_HANDLE;
if (enable) NotImplemented_nid_no_patch(__func__);
return PAD_OK;
}
int APS5_VABI scePadSetLightBar(int handle, const PadLightBarParam* param) {
+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, false) == 0);
Require(scePadSetAngularVelocityDeadbandState(handle + 1, false) == PAD_ERROR_INVALID_HANDLE);
}