ControllerInfo.cs 550 B

123456789101112131415161718192021
  1. using System.Runtime.InteropServices;
  2. namespace Ryujinx.Input.Motion.CemuHook.Protocol
  3. {
  4. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  5. public struct ControllerInfoResponse
  6. {
  7. public SharedResponse Shared;
  8. private byte _zero;
  9. }
  10. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  11. public struct ControllerInfoRequest
  12. {
  13. public MessageType Type;
  14. public int PortsCount;
  15. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
  16. public byte[] PortIndices;
  17. }
  18. }