2020-09-29 21:32:42 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2021-01-08 08:14:13 +00:00
|
|
|
|
namespace Ryujinx.Modules.Motion
|
2020-09-29 21:32:42 +00:00
|
|
|
|
{
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
|
|
|
public struct ControllerInfoResponse
|
|
|
|
|
{
|
2021-01-08 08:14:13 +00:00
|
|
|
|
public SharedResponse Shared;
|
|
|
|
|
private byte _zero;
|
2020-09-29 21:32:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
|
|
|
public struct ControllerInfoRequest
|
|
|
|
|
{
|
|
|
|
|
public MessageType Type;
|
2021-01-08 08:14:13 +00:00
|
|
|
|
public int PortsCount;
|
2020-09-29 21:32:42 +00:00
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
|
|
|
|
public byte[] PortIndices;
|
|
|
|
|
}
|
2021-01-08 08:14:13 +00:00
|
|
|
|
}
|