/// <summary> /// Initializes a new instance of the <see cref="RawKeyboard"/> class. /// </summary> /// <param name="owner">The control that owns this device.</param> /// <param name="deviceName">Name of the device.</param> /// <param name="handle">The handle to the device.</param> /// <exception cref="System.ArgumentNullException">Thrown when the owner parameter is NULL (or Nothing in VB.NET).</exception> internal RawKeyboard(GorgonRawInputFactory owner, string deviceName, IntPtr handle) : base(owner, deviceName) { Gorgon.Log.Print("Raw input keyboard interface created for handle 0x{0}.", LoggingLevel.Verbose, handle.FormatHex()); _deviceHandle = handle; _messageFilter = owner.MessageFilter; }
/// <summary> /// Initializes a new instance of the <see cref="RawHIDDevice"/> class. /// </summary> /// <param name="owner">The control that owns this device.</param> /// <param name="deviceData">The HID device name object.</param> /// <exception cref="System.ArgumentNullException">Thrown when the owner parameter is NULL (or Nothing in VB.NET).</exception> internal RawHIDDevice(GorgonRawInputFactory owner, GorgonRawInputDeviceInfo deviceData) : base(owner, deviceData.Name) { Gorgon.Log.Print("Raw input HID interface created for handle 0x{0}.", LoggingLevel.Verbose, deviceData.Handle.FormatHex()); _deviceData = deviceData; _messageFilter = owner.MessageFilter; SetData("BinaryData", new byte[0]); }
/// <summary> /// Initializes a new instance of the <see cref="RawPointingDevice"/> class. /// </summary> /// <param name="owner">The control that owns this device.</param> /// <param name="deviceName">Device name.</param> /// <param name="handle">The handle to the device.</param> /// <exception cref="System.ArgumentNullException">Thrown when the owner parameter is NULL (or Nothing in VB.NET).</exception> internal RawPointingDevice(GorgonRawInputFactory owner, string deviceName, IntPtr handle) : base(owner, deviceName) { Gorgon.Log.Print("Raw input pointing device interface created for handle 0x{0}.", LoggingLevel.Verbose, handle.FormatHex()); _deviceHandle = handle; _doubleClicker = new GorgonTimer(); _doubleClicker.Reset(); _messageFilter = owner.MessageFilter; }