Apply suggestions from code review

Co-authored-by: makigumo <makigumo@users.noreply.github.com>
This commit is contained in:
Tsubasa0504 2024-04-19 22:54:48 +09:00 committed by GitHub
commit 742d9e3af4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1107,6 +1107,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
// If one is found, it returns the npadIdType of the other Npad and a bool. // If one is found, it returns the npadIdType of the other Npad and a bool.
// If not, it returns nothing. // If not, it returns nothing.
} }
[CommandCmif(134)] // 6.1.0+ [CommandCmif(134)] // 6.1.0+
// SetNpadUseAnalogStickUseCenterClamp(bool Enable, nn::applet::AppletResourceUserId) // SetNpadUseAnalogStickUseCenterClamp(bool Enable, nn::applet::AppletResourceUserId)
public ResultCode SetNpadUseAnalogStickUseCenterClamp(ServiceCtx context) public ResultCode SetNpadUseAnalogStickUseCenterClamp(ServiceCtx context)
@ -1115,7 +1116,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
_npadAnalogStickCenterClampEnabled = context.RequestData.ReadUInt32() != 0; _npadAnalogStickCenterClampEnabled = context.RequestData.ReadUInt32() != 0;
long appletResourceUserId = context.RequestData.ReadInt64(); long appletResourceUserId = context.RequestData.ReadInt64();
Logger.Stub?.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, _npadAnalogStickCenterClampEnabled }); Logger.Stub?.PrintStub(LogClass.ServiceHid, new { pid, appletResourceUserId, _npadAnalogStickCenterClampEnabled });
return ResultCode.Success; return ResultCode.Success;
} }