From 62020a2d09d59a9316c0073c4e2abb334aef8ebd Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Wed, 11 Apr 2018 18:17:18 +0200 Subject: [PATCH] Replaced own hidsharp-package with the latest official which supports .net standard --- RGB.NET.Devices.Logitech/HID/DeviceChecker.cs | 5 ++--- RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs b/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs index 2caa03e..b681f9b 100644 --- a/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs +++ b/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs @@ -11,7 +11,7 @@ namespace RGB.NET.Devices.Logitech.HID #region Constants private const int VENDOR_ID = 0x046D; - + //TODO DarthAffe 14.11.2017: Add devices private static readonly List<(string model, RGBDeviceType deviceType, int id, string imageLayout, string layoutPath)> PER_KEY_DEVICES = new List<(string model, RGBDeviceType deviceType, int id, string imageLayout, string layoutPath)> @@ -47,8 +47,7 @@ namespace RGB.NET.Devices.Logitech.HID internal static void LoadDeviceList() { - HidDeviceLoader loader = new HidDeviceLoader(); - List ids = loader.GetDevices(VENDOR_ID).Select(x => x.ProductID).Distinct().ToList(); + List ids = DeviceList.Local.GetHidDevices(VENDOR_ID).Select(x => x.ProductID).Distinct().ToList(); foreach ((string model, RGBDeviceType deviceType, int id, string imageLayout, string layoutPath) deviceData in PER_KEY_DEVICES) if (ids.Contains(deviceData.id)) diff --git a/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj b/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj index 51726b3..8b586db 100644 --- a/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj +++ b/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj @@ -60,7 +60,7 @@ - +