using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace SkyHook { [StructLayout(LayoutKind.Sequential)] [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")] public struct SkyHookEvent { /// /// When the key was pressed. /// public readonly ulong Time; /// /// The key is pressed or released. /// public readonly EventType Type; /// /// The identified key label from the native assembly. /// public readonly ushort Label; /// /// The key number that was pressed or released. /// public readonly ushort Key; } public enum EventType { KeyPressed, KeyReleased } }