Add some HID Commands
This commit is contained in:
parent
51605fafc0
commit
b80939bf5c
1 changed files with 37 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue