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