Full 5.X stubbed IHidServer (#428)

* Full 5.X stubbed IHidServer

Since we can't support all those Hid calls in the right way, we can stub them with more information as possible in the logs.
I have added all symbols in it to be more revelant as possible.
It's remove some Hid spam in few games too, because we assign some var as the game want.

* Fix issues

* Fix code according to review
This commit is contained in:
Ac_K 2018-09-21 02:08:35 +02:00 committed by Thomas Guillemard
parent 47a62e826f
commit e77c1560e6
4 changed files with 1422 additions and 101 deletions

View File

@ -0,0 +1,41 @@
using System;
namespace Ryujinx.HLE.HOS.Services.Hid
{
public enum HidNpadJoyAssignmentMode
{
Dual,
Single,
}
public enum HidNpadHandheldActivationMode
{
Dual,
Single,
None,
}
public enum HidNpadJoyDeviceType
{
Left,
Right,
}
public enum HidNpadJoyHoldType
{
Vertical,
Horizontal,
}
[Flags]
public enum HidNpadStyle
{
None,
FullKey = 1 << 0,
Handheld = 1 << 1,
Dual = 1 << 2,
Left = 1 << 3,
Right = 1 << 4,
Invalid = 1 << 5,
}
}

View File

@ -0,0 +1,21 @@
namespace Ryujinx.HLE.HOS.Services.Hid
{
public struct HidSensorFusionParameters
{
public float RevisePower;
public float ReviseRange;
}
public struct HidAccelerometerParameters
{
public float X;
public float Y;
}
public enum HidGyroscopeZeroDriftMode
{
Loose,
Standard,
Tight
}
}

View File

@ -0,0 +1,29 @@
namespace Ryujinx.HLE.HOS.Services.Hid
{
public enum HidVibrationDeviceType
{
None,
LinearResonantActuator
}
public enum HidVibrationDevicePosition
{
None,
Left,
Right,
}
public struct HidVibrationDeviceValue
{
public HidVibrationDeviceType DeviceType;
public HidVibrationDevicePosition Position;
}
public struct HidVibrationValue
{
public float AmplitudeLow;
public float FrequencyLow;
public float AmplitudeHigh;
public float FrequencyHigh;
}
}

File diff suppressed because it is too large Load Diff