mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-28 04:04:04 +00:00
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:
parent
47a62e826f
commit
e77c1560e6
4 changed files with 1422 additions and 101 deletions
41
Ryujinx.HLE/HOS/Services/Hid/HidNpad.cs
Normal file
41
Ryujinx.HLE/HOS/Services/Hid/HidNpad.cs
Normal 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,
|
||||
}
|
||||
}
|
21
Ryujinx.HLE/HOS/Services/Hid/HidSixAxis.cs
Normal file
21
Ryujinx.HLE/HOS/Services/Hid/HidSixAxis.cs
Normal 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
|
||||
}
|
||||
}
|
29
Ryujinx.HLE/HOS/Services/Hid/HidVibration.cs
Normal file
29
Ryujinx.HLE/HOS/Services/Hid/HidVibration.cs
Normal 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
Loading…
Reference in a new issue