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