diff --git a/Runtime/Event.cs b/Runtime/Event.cs index f47edad..84634b3 100644 --- a/Runtime/Event.cs +++ b/Runtime/Event.cs @@ -1,13 +1,24 @@ +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace SkyHook { [StructLayout(LayoutKind.Sequential)] + [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")] public struct SkyHookEvent { - public ulong Time; - public short Type; - public uint Key; + /// + /// When the key was pressed + /// + public readonly ulong Time; + /// + /// The key is pressed or released + /// + public readonly EventType Type; + /// + /// The key number that was pressed or released + /// + public readonly uint Key; } public enum EventType