diff -r e2acfa51664f -r baabcd5cdf8c Hid/HidEvent.cs --- a/Hid/HidEvent.cs Sun Mar 15 20:30:00 2015 +0100 +++ b/Hid/HidEvent.cs Sun Mar 15 20:44:15 2015 +0100 @@ -52,7 +52,7 @@ /// Represent a HID event. /// TODO: Rename this into HidRawInput? /// - public class HidEvent : IDisposable + public class Event : IDisposable { public bool IsValid { get; private set; } public bool IsForeground { get; private set; } @@ -68,7 +68,7 @@ public bool IsRepeat { get { return RepeatCount != 0; } } public uint RepeatCount { get; private set; } - public HidDevice Device { get; private set; } + public Device Device { get; private set; } public RAWINPUT RawInput { get {return iRawInput;} } private RAWINPUT iRawInput; @@ -83,7 +83,7 @@ //TODO: We need a collection of input report public byte[] InputReport { get; private set; } // - public delegate void HidEventRepeatDelegate(HidEvent aHidEvent); + public delegate void HidEventRepeatDelegate(Event aHidEvent); public event HidEventRepeatDelegate OnHidEventRepeat; private System.Timers.Timer Timer { get; set; } @@ -115,7 +115,7 @@ /// Initialize an HidEvent from a WM_INPUT message /// /// Device Handle as provided by RAWINPUTHEADER.hDevice, typically accessed as rawinput.header.hDevice - public HidEvent(Message aMessage, HidEventRepeatDelegate aRepeatDelegate) + public Event(Message aMessage, HidEventRepeatDelegate aRepeatDelegate) { RepeatCount = 0; IsValid = false; @@ -163,7 +163,7 @@ if (RawInput.header.hDevice != IntPtr.Zero) { //Get various information about this HID device - Device = new HidDevice(RawInput.header.hDevice); + Device = new Device(RawInput.header.hDevice); } if (RawInput.header.dwType == Win32.RawInputDeviceType.RIM_TYPEHID) //Check that our raw input is HID @@ -406,7 +406,7 @@ Timer.Enabled = true; } - static private void OnRepeatTimerElapsed(object sender, ElapsedEventArgs e, HidEvent aHidEvent) + static private void OnRepeatTimerElapsed(object sender, ElapsedEventArgs e, Event aHidEvent) { if (aHidEvent.IsStray) {