From a22bd2ba7eb39f75a76c3893f11e8281b1596a58 Mon Sep 17 00:00:00 2001 From: Pariring Date: Thu, 3 Nov 2022 21:18:05 +0900 Subject: [PATCH] chore: comments for event struct --- Runtime/Event.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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