diff --git a/Runtime/Event.cs b/Runtime/Event.cs
index 84634b3..3b6900c 100644
--- a/Runtime/Event.cs
+++ b/Runtime/Event.cs
@@ -8,17 +8,21 @@ namespace SkyHook
public struct SkyHookEvent
{
///
- /// When the key was pressed
+ /// When the key was pressed.
///
public readonly ulong Time;
///
- /// The key is pressed or released
+ /// The key is pressed or released.
///
public readonly EventType Type;
///
- /// The key number that was pressed or released
+ /// The identified key label from the native assembly.
///
- public readonly uint Key;
+ public readonly ushort Label;
+ ///
+ /// The key number that was pressed or released.
+ ///
+ public readonly ushort Key;
}
public enum EventType
diff --git a/Runtime/SkyHookManager.cs b/Runtime/SkyHookManager.cs
index 1680212..732462e 100644
--- a/Runtime/SkyHookManager.cs
+++ b/Runtime/SkyHookManager.cs
@@ -13,7 +13,8 @@ namespace SkyHook
public static bool IsFocused;
///
- /// Whether or not the event will be received only if the game window is focused.
+ /// Whether or the event will be received only if the game window is focused.
+ /// Note that only down key events will be ignored.
///
// ReSharper disable once MemberCanBePrivate.Global
// ReSharper disable once FieldCanBeMadeReadOnly.Global
@@ -22,13 +23,15 @@ namespace SkyHook
public bool isHookActive;
///
- /// The key updated event data
+ /// Your callback for each key updated events.
+ /// Use to register your callback.
///
// ReSharper disable once MemberCanBePrivate.Global
public static readonly UnityEvent KeyUpdated = new();
///
- /// The instance of sky hook manager. The instance will be created if it does not exist
+ /// The instance of .
+ /// A new instance will be created if it does not exist.
///
// ReSharper disable once MemberCanBePrivate.Global
public static SkyHookManager Instance
@@ -105,11 +108,17 @@ namespace SkyHook
isHookActive = false;
}
+ ///
+ /// Starts the native hook.
+ ///
public static void StartHook()
{
Instance._StartHook();
}
+ ///
+ /// Stops the native hook.
+ ///
public static void StopHook()
{
Instance._StopHook();