mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-28 04:54:30 +00:00
scePadResetOrientation (#3332)
This commit is contained in:
parent
c863b350b2
commit
2e237051e3
@ -555,7 +555,17 @@ int PS4_SYSV_ABI scePadResetLightBarAllByPortType() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI scePadResetOrientation(s32 handle) {
|
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<GameController>::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;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user