Ejemplo n.º 1
0
        internal HidDeviceShell(HidDevice hidDevice, VolumeService volumeService)
        {
            Device = hidDevice;
            Device.OpenDevice();

            Device.Inserted           += DeviceAttachedHandler;
            Device.Removed            += DeviceRemovedHandler;
            Device.MonitorDeviceEvents = true;
            Device.ReadReport(OnReport);
        }