chore: comments for event struct
parent
8fd4c05a2f
commit
a22bd2ba7e
|
@ -1,13 +1,24 @@
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace SkyHook
|
namespace SkyHook
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
|
||||||
public struct SkyHookEvent
|
public struct SkyHookEvent
|
||||||
{
|
{
|
||||||
public ulong Time;
|
/// <summary>
|
||||||
public short Type;
|
/// When the key was pressed
|
||||||
public uint Key;
|
/// </summary>
|
||||||
|
public readonly ulong Time;
|
||||||
|
/// <summary>
|
||||||
|
/// The key is pressed or released
|
||||||
|
/// </summary>
|
||||||
|
public readonly EventType Type;
|
||||||
|
/// <summary>
|
||||||
|
/// The key number that was pressed or released
|
||||||
|
/// </summary>
|
||||||
|
public readonly uint Key;
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum EventType
|
public enum EventType
|
||||||
|
|
Reference in New Issue