From 2e237051e3f7f7d8626fc4105155b23a53be6f84 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Sat, 26 Jul 2025 19:48:30 -0300 Subject: [PATCH] scePadResetOrientation (#3332) --- src/core/libraries/pad/pad.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/core/libraries/pad/pad.cpp b/src/core/libraries/pad/pad.cpp index 1782cfb79..eac37aa45 100644 --- a/src/core/libraries/pad/pad.cpp +++ b/src/core/libraries/pad/pad.cpp @@ -555,7 +555,17 @@ int PS4_SYSV_ABI scePadResetLightBarAllByPortType() { } int PS4_SYSV_ABI scePadResetOrientation(s32 handle) { - LOG_ERROR(Lib_Pad, "(STUBBED) called"); + LOG_INFO(Lib_Pad, "scePadResetOrientation called handle = {}", handle); + + if (handle != 1) { + return ORBIS_PAD_ERROR_INVALID_HANDLE; + } + + auto* controller = Common::Singleton::Instance(); + Libraries::Pad::OrbisFQuaternion defaultOrientation = {0.0f, 0.0f, 0.0f, 1.0f}; + controller->SetLastOrientation(defaultOrientation); + controller->SetLastUpdate(std::chrono::steady_clock::now()); + return ORBIS_OK; }