diff --git a/Ryujinx.HLE/OsHle/Services/Hid/IHidServer.cs b/Ryujinx.HLE/OsHle/Services/Hid/IHidServer.cs index 79d37fd4c9..baae578e83 100644 --- a/Ryujinx.HLE/OsHle/Services/Hid/IHidServer.cs +++ b/Ryujinx.HLE/OsHle/Services/Hid/IHidServer.cs @@ -22,10 +22,13 @@ namespace Ryujinx.HLE.OsHle.Services.Hid { 31, ActivateKeyboard }, { 66, StartSixAxisSensor }, { 79, SetGyroscopeZeroDriftMode }, + { 82, IsSixAxisSensorAtRest }, { 100, SetSupportedNpadStyleSet }, { 101, GetSupportedNpadStyleSet }, { 102, SetSupportedNpadIdType }, { 103, ActivateNpad }, + { 106, AcquireNpadStyleSetUpdateEventHandle }, + { 107, DisconnectNpad }, { 108, GetPlayerLedPattern }, { 120, SetNpadJoyHoldType }, { 121, GetNpadJoyHoldType }, @@ -103,6 +106,16 @@ namespace Ryujinx.HLE.OsHle.Services.Hid return 0; } + + public long IsSixAxisSensorAtRest(ServiceCtx Context) + { + int Handle = Context.RequestData.ReadInt32(); + long AppletResourceUserId = Context.RequestData.ReadInt64(); + + Context.ResponseData.Write(true); + + return 0; + } public long GetSupportedNpadStyleSet(ServiceCtx Context) { @@ -141,6 +154,30 @@ namespace Ryujinx.HLE.OsHle.Services.Hid return 0; } + public long AcquireNpadStyleSetUpdateEventHandle(ServiceCtx Context) + { + int Unknown = Context.RequestData.ReadInt32(); + + long AppletResourceUserId = Context.RequestData.ReadInt64(); + + long Unknown1 = Context.RequestData.ReadInt64(); + + int Handle = Context.Process.HandleTable.OpenHandle(Unknown1); + + Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Handle); + + return 0; + } + + public long DisconnectNpad(ServiceCtx Context) + { + int Id = Context.RequestData.ReadInt32(); + + long AppletResourceUserId = Context.RequestData.ReadInt64(); + + return 0; + } + public long GetPlayerLedPattern(ServiceCtx Context) { long Unknown = Context.RequestData.ReadInt32();