From 1c07f24fdf9abf0f9fdbc4e8cfe2dcd0b156bbcb Mon Sep 17 00:00:00 2001 From: emmaus Date: Wed, 12 Sep 2018 08:48:35 +0000 Subject: [PATCH] stub HID 82 --- Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs index 70f1f1f1f..0c58adf25 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs @@ -26,6 +26,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid { 31, ActivateKeyboard }, { 66, StartSixAxisSensor }, { 79, SetGyroscopeZeroDriftMode }, + { 82, IsSixAxisSensorAtRest }, { 100, SetSupportedNpadStyleSet }, { 101, GetSupportedNpadStyleSet }, { 102, SetSupportedNpadIdType }, @@ -111,6 +112,18 @@ namespace Ryujinx.HLE.HOS.Services.Hid return 0; } + public long IsSixAxisSensorAtRest(ServiceCtx Context) + { + int Handle = Context.RequestData.ReadInt32(); + long AppletResourceUserId = Context.RequestData.ReadInt64(); + + Context.ResponseData.Write(true); + + Context.Device.Log.PrintStub(LogClass.ServiceHid, "Stubbed."); + + return 0; + } + public long AcquireNpadStyleSetUpdateEventHandle(ServiceCtx Context) { int Handle = Context.Process.HandleTable.OpenHandle(NpadStyleSetUpdateEvent);