From 0af2e73db9248e8dc454cf71f3b142cc50fb1b01 Mon Sep 17 00:00:00 2001 From: Tsubasa0504 <60139445+Tsubasa0504@users.noreply.github.com> Date: Sun, 14 Apr 2024 22:27:21 +0900 Subject: [PATCH] Update IHidServer.cs mistakes... --- .../HOS/Services/Hid/IHidServer.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs b/src/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs index f2eb6a26a8..4c6678ed87 100644 --- a/src/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs +++ b/src/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs @@ -1095,17 +1095,6 @@ namespace Ryujinx.HLE.HOS.Services.Hid return ResultCode.Success; } - [CommandCmif(134)] //6.1.0+ - //SetNpadUseAnalogStickUseCenterClamp(bool Enable, nn::applet::AppletResourceUserId) - public ResultCode SetNpadUseAnalogStickUseCenterClamp(ServiceCtx context) - { - _NpadAnalogStickCenterClampEnabled = context.RequestData.ReadBoolean(); - long appletResourceUserId = context.RequestData.ReadInt64(); - - Logger.Stub?.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, _NpadAnalogStickCenterClampEnabled }); - - return ResultCode.Success; - } private void SetNpadJoyAssignmentModeSingleWithDestinationImpl(ServiceCtx context, NpadIdType npadIdType, long appletResourceUserId, NpadJoyDeviceType npadJoyDeviceType, out NpadIdType npadIdTypeSet, out bool npadIdTypeIsSet) { @@ -1118,6 +1107,17 @@ namespace Ryujinx.HLE.HOS.Services.Hid // If one is found, it returns the npadIdType of the other Npad and a bool. // If not, it returns nothing. } + [CommandCmif(134)] //6.1.0+ + //SetNpadUseAnalogStickUseCenterClamp(bool Enable, nn::applet::AppletResourceUserId) + public ResultCode SetNpadUseAnalogStickUseCenterClamp(ServiceCtx context) + { + _NpadAnalogStickCenterClampEnabled = context.RequestData.ReadBoolean(); + long appletResourceUserId = context.RequestData.ReadInt64(); + + Logger.Stub?.PrintStub(LogClass.ServiceHid, new { appletResourceUserId, _NpadAnalogStickCenterClampEnabled }); + + return ResultCode.Success; + } [CommandCmif(200)] // GetVibrationDeviceInfo(nn::hid::VibrationDeviceHandle) -> nn::hid::VibrationDeviceInfo