diff --git a/VKB/VKBConnectionHandler.cs b/VKB/VKBConnectionHandler.cs index 2333f43..873fabf 100644 --- a/VKB/VKBConnectionHandler.cs +++ b/VKB/VKBConnectionHandler.cs @@ -19,7 +19,8 @@ public void Startup(Object sender, EventArgs e) DeviceList.Local.Changed += DevicesChanged; foreach (HidDevice dev in DevList) { - Devices.Add(new VKBDevice(dev)); + if (dev.GetReportDescriptor().FeatureReports.Count() > 0) + Devices.Add(new VKBDevice(dev)); } } public void DevicesChanged(Object sender, EventArgs e) @@ -38,7 +39,8 @@ public void DevicesChanged(Object sender, EventArgs e) { if(Devices.Find(d => d.HidDev == dev) == null) { - Devices.Add(new VKBDevice(dev)); + if (dev.GetReportDescriptor().FeatureReports.Count() > 0) + Devices.Add(new VKBDevice(dev)); } } }