2018-02-18 00:54:19 +01:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2018-02-20 21:09:23 +01:00
|
|
|
|
namespace Ryujinx.Core
|
2018-02-18 00:54:19 +01:00
|
|
|
|
{
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x28)]
|
|
|
|
|
public struct HidTouchScreenHeader
|
|
|
|
|
{
|
|
|
|
|
public ulong TimestampTicks;
|
|
|
|
|
public ulong NumEntries;
|
|
|
|
|
public ulong LatestEntry;
|
|
|
|
|
public ulong MaxEntryIndex;
|
|
|
|
|
public ulong Timestamp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
|
|
|
|
public struct HidTouchScreenEntryHeader
|
|
|
|
|
{
|
|
|
|
|
public ulong Timestamp;
|
|
|
|
|
public ulong NumTouches;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x28)]
|
|
|
|
|
public struct HidTouchScreenEntryTouch
|
|
|
|
|
{
|
|
|
|
|
public ulong Timestamp;
|
|
|
|
|
public uint Padding;
|
|
|
|
|
public uint TouchIndex;
|
|
|
|
|
public uint X;
|
|
|
|
|
public uint Y;
|
|
|
|
|
public uint DiameterX;
|
|
|
|
|
public uint DiameterY;
|
|
|
|
|
public uint Angle;
|
|
|
|
|
public uint Padding_2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x298)]
|
|
|
|
|
public struct HidTouchScreenEntry
|
|
|
|
|
{
|
|
|
|
|
public HidTouchScreenEntryHeader Header;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
|
2018-02-22 14:28:27 +01:00
|
|
|
|
public HidTouchScreenEntryTouch[] Touches;
|
2018-02-18 00:54:19 +01:00
|
|
|
|
public ulong Unknown;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x3000)]
|
|
|
|
|
public struct HidTouchScreen
|
|
|
|
|
{
|
|
|
|
|
public HidTouchScreenHeader Header;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 17)]
|
|
|
|
|
public HidTouchScreenEntry[] Entries;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x3C0)]
|
|
|
|
|
public byte[] Padding;
|
|
|
|
|
}
|
2018-02-22 14:28:27 +01:00
|
|
|
|
|
2018-02-24 11:15:35 +01:00
|
|
|
|
public struct Touches
|
|
|
|
|
{
|
|
|
|
|
public uint[] XTouches;
|
|
|
|
|
public uint[] YTouches;
|
|
|
|
|
public uint NumberOfTouches;
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-22 14:28:27 +01:00
|
|
|
|
}
|