using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace SkyHook
{
///
/// Recorded key updates from SkyHook.
///
[StructLayout(LayoutKind.Sequential)]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public struct SkyHookEvent
{
///
/// When the key's state was updated.
///
public readonly ulong Time;
///
/// Whether 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;
}
///
/// The type of 's event.
///
public enum EventType
{
KeyPressed,
KeyReleased
}
}