mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-16 21:36:33 +00:00
Update IHidServer.cs (#84)
* Update IHidServer.cs Stubs: - SetGyroscopeZeroDriftMode - SetNpadHandheldActivationMode - SendVibrationValue - GetPlayerLedPattern * Update IHidServer.cs updated
This commit is contained in:
parent
b334aab435
commit
ed155e6f4e
@ -20,17 +20,21 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
{ 21, ActivateMouse },
|
{ 21, ActivateMouse },
|
||||||
{ 31, ActivateKeyboard },
|
{ 31, ActivateKeyboard },
|
||||||
{ 66, StartSixAxisSensor },
|
{ 66, StartSixAxisSensor },
|
||||||
|
{ 79, SetGyroscopeZeroDriftMode },
|
||||||
{ 100, SetSupportedNpadStyleSet },
|
{ 100, SetSupportedNpadStyleSet },
|
||||||
{ 101, GetSupportedNpadStyleSet },
|
{ 101, GetSupportedNpadStyleSet },
|
||||||
{ 102, SetSupportedNpadIdType },
|
{ 102, SetSupportedNpadIdType },
|
||||||
{ 103, ActivateNpad },
|
{ 103, ActivateNpad },
|
||||||
|
{ 108, GetPlayerLedPattern },
|
||||||
{ 120, SetNpadJoyHoldType },
|
{ 120, SetNpadJoyHoldType },
|
||||||
{ 121, GetNpadJoyHoldType },
|
{ 121, GetNpadJoyHoldType },
|
||||||
{ 122, SetNpadJoyAssignmentModeSingleByDefault },
|
{ 122, SetNpadJoyAssignmentModeSingleByDefault },
|
||||||
{ 123, SetNpadJoyAssignmentModeSingle },
|
{ 123, SetNpadJoyAssignmentModeSingle },
|
||||||
{ 124, SetNpadJoyAssignmentModeDual },
|
{ 124, SetNpadJoyAssignmentModeDual },
|
||||||
{ 125, MergeSingleJoyAsDualJoy },
|
{ 125, MergeSingleJoyAsDualJoy },
|
||||||
|
{ 128, SetNpadHandheldActivationMode },
|
||||||
{ 200, GetVibrationDeviceInfo },
|
{ 200, GetVibrationDeviceInfo },
|
||||||
|
{ 201, SendVibrationValue },
|
||||||
{ 203, CreateActiveVibrationDeviceList },
|
{ 203, CreateActiveVibrationDeviceList },
|
||||||
{ 206, SendVibrationValues }
|
{ 206, SendVibrationValues }
|
||||||
};
|
};
|
||||||
@ -88,6 +92,17 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long SetGyroscopeZeroDriftMode(ServiceCtx Context)
|
||||||
|
{
|
||||||
|
int Handle = Context.RequestData.ReadInt32();
|
||||||
|
int Unknown = Context.RequestData.ReadInt32();
|
||||||
|
long AppletResourceUserId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
public long GetSupportedNpadStyleSet(ServiceCtx Context)
|
public long GetSupportedNpadStyleSet(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
Context.ResponseData.Write(0);
|
Context.ResponseData.Write(0);
|
||||||
@ -125,6 +140,17 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long GetPlayerLedPattern(ServiceCtx Context)
|
||||||
|
{
|
||||||
|
long Unknown = Context.RequestData.ReadInt32();
|
||||||
|
|
||||||
|
Context.ResponseData.Write(0L);
|
||||||
|
|
||||||
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
public long SetNpadJoyHoldType(ServiceCtx Context)
|
public long SetNpadJoyHoldType(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
long Unknown0 = Context.RequestData.ReadInt64();
|
long Unknown0 = Context.RequestData.ReadInt64();
|
||||||
@ -147,7 +173,7 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
public long SetNpadJoyAssignmentModeSingleByDefault(ServiceCtx Context)
|
public long SetNpadJoyAssignmentModeSingleByDefault(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
|
HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
|
||||||
long AppletUserResourseId = Context.RequestData.ReadInt64();
|
long AppletUserResourceId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
@ -157,7 +183,7 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
public long SetNpadJoyAssignmentModeSingle(ServiceCtx Context)
|
public long SetNpadJoyAssignmentModeSingle(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
|
HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
|
||||||
long AppletUserResourseId = Context.RequestData.ReadInt64();
|
long AppletUserResourceId = Context.RequestData.ReadInt64();
|
||||||
long NpadJoyDeviceType = Context.RequestData.ReadInt64();
|
long NpadJoyDeviceType = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
@ -168,7 +194,7 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
public long SetNpadJoyAssignmentModeDual(ServiceCtx Context)
|
public long SetNpadJoyAssignmentModeDual(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
|
HidControllerId HidControllerId = (HidControllerId)Context.RequestData.ReadInt32();
|
||||||
long AppletUserResourseId = Context.RequestData.ReadInt64();
|
long AppletUserResourceId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
@ -179,7 +205,17 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
{
|
{
|
||||||
long Unknown0 = Context.RequestData.ReadInt32();
|
long Unknown0 = Context.RequestData.ReadInt32();
|
||||||
long Unknown8 = Context.RequestData.ReadInt32();
|
long Unknown8 = Context.RequestData.ReadInt32();
|
||||||
long AppletUserResourseId = Context.RequestData.ReadInt64();
|
long AppletUserResourceId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long SetNpadHandheldActivationMode(ServiceCtx Context)
|
||||||
|
{
|
||||||
|
long AppletUserResourceId = Context.RequestData.ReadInt64();
|
||||||
|
long Unknown = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
@ -197,6 +233,22 @@ namespace Ryujinx.Core.OsHle.Services.Hid
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long SendVibrationValue(ServiceCtx Context)
|
||||||
|
{
|
||||||
|
int VibrationDeviceHandle = Context.RequestData.ReadInt32();
|
||||||
|
|
||||||
|
int VibrationValue1 = Context.RequestData.ReadInt32();
|
||||||
|
int VibrationValue2 = Context.RequestData.ReadInt32();
|
||||||
|
int VibrationValue3 = Context.RequestData.ReadInt32();
|
||||||
|
int VibrationValue4 = Context.RequestData.ReadInt32();
|
||||||
|
|
||||||
|
long AppletUserResourceId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
|
Logging.Stub(LogClass.ServiceHid, "Stubbed");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
public long CreateActiveVibrationDeviceList(ServiceCtx Context)
|
public long CreateActiveVibrationDeviceList(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
MakeObject(Context, new IActiveApplicationDeviceList());
|
MakeObject(Context, new IActiveApplicationDeviceList());
|
||||||
|
Loading…
Reference in New Issue
Block a user