mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-03 00:57:11 +02:00
HID Implementation (#20)
* Basic HID Implementation * Basic HID Implementation in Config * HID Corrections * HID Corrections 2
This commit is contained in:
parent
595e7ee588
commit
f469b968a8
12 changed files with 758 additions and 75 deletions
81
Ryujinx/Hid/HidUnknown.cs
Normal file
81
Ryujinx/Hid/HidUnknown.cs
Normal file
|
@ -0,0 +1,81 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ryujinx
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x400)]
|
||||
public struct HidSharedMemHeader
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x400)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x400)]
|
||||
public struct HidUnknownSection1
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x400)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x400)]
|
||||
public struct HidUnknownSection2
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x400)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x400)]
|
||||
public struct HidUnknownSection3
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x400)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x400)]
|
||||
public struct HidUnknownSection4
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x400)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x200)]
|
||||
public struct HidUnknownSection5
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x200)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x200)]
|
||||
public struct HidUnknownSection6
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x200)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x200)]
|
||||
public struct HidUnknownSection7
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x200)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x800)]
|
||||
public struct HidUnknownSection8
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x800)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x4000)]
|
||||
public struct HidControllerSerials
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x4000)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x4600)]
|
||||
public struct HidUnknownSection9
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x4600)]
|
||||
public byte[] Padding;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue