From ad5b3d18945f83c57debde26ef5d0a4e009205e4 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Thu, 3 Aug 2017 19:32:03 +0200 Subject: [PATCH] Added basic Logitech G610 layout --- RGB.NET.Devices.Logitech/HID/DeviceChecker.cs | 8 +- .../Layouts/Logitech/Keyboards/G610/UK.xml | 223 ++++++++++++++++++ .../RGB.NET.Devices.Logitech.csproj | 3 + 3 files changed, 233 insertions(+), 1 deletion(-) create mode 100644 RGB.NET.Devices.Logitech/Layouts/Logitech/Keyboards/G610/UK.xml diff --git a/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs b/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs index 14ff155..9e3e307 100644 --- a/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs +++ b/RGB.NET.Devices.Logitech/HID/DeviceChecker.cs @@ -12,6 +12,7 @@ namespace RGB.NET.Devices.Logitech.HID private const int VENDOR_ID = 0x046D; private const int G910_ID = 0xC32B; private const int G810_ID = 0x0; + private const int G610_ID = 0x0; #endregion @@ -23,13 +24,15 @@ namespace RGB.NET.Devices.Logitech.HID { if (IsG910Connected) return "G910"; if (IsG810Connected) return "G810"; + if (IsG610Connected) return "G610"; return null; } } - public static bool IsDeviceConnected => IsG910Connected || IsG810Connected; + public static bool IsDeviceConnected => IsG910Connected || IsG810Connected || IsG610Connected; public static bool IsG910Connected { get; private set; } public static bool IsG810Connected { get; private set; } + public static bool IsG610Connected { get; private set; } #endregion @@ -39,6 +42,7 @@ namespace RGB.NET.Devices.Logitech.HID { IsG910Connected = false; IsG810Connected = false; + IsG610Connected = false; HidDeviceLoader loader = new HidDeviceLoader(); IEnumerable devices = loader.GetDevices(); @@ -49,6 +53,8 @@ namespace RGB.NET.Devices.Logitech.HID IsG910Connected = true; else if (hidDevice.ProductID == G810_ID) IsG810Connected = true; + else if (hidDevice.ProductID == G610_ID) + IsG810Connected = true; } } diff --git a/RGB.NET.Devices.Logitech/Layouts/Logitech/Keyboards/G610/UK.xml b/RGB.NET.Devices.Logitech/Layouts/Logitech/Keyboards/G610/UK.xml new file mode 100644 index 0000000..9759bab --- /dev/null +++ b/RGB.NET.Devices.Logitech/Layouts/Logitech/Keyboards/G610/UK.xml @@ -0,0 +1,223 @@ + + + Logitech G610 - Physical UK + Physical UK-Layout of Logitech G610 (Logical: ???) + Keyboard + Key + Logitech + G610 + 442 + 152 + + + + 5 + 28 + + + + +12.667 + + + + + + + +12.667 + + + + + + + +12.667 + + + + + + + +6.75 + + + + + + + 5 + 52 + + + + + + + + + + + + + + + 2 + + + + +6.75 + + + + + + +6.75 + + + + + + + + 5 + + + 1.5 + + + + + + + + + + + + + + + M0,0 L0,0.5 L0.16666666666,0.5 L0.16666666666,1 L1,1 L1,0 Z + 1.5 + 2 + + + + +6.75 + + + + + + +6.75 + + + + + 2 + + + + + 5 + ~ + 1.75 + + + + + + + + + + + + + + + + +94.25 + + + + + + + 5 + + + 1.25 + + + + + + + + + + + + + + 2.75 + + + + +25.75 + + + + +25.75 + + + + + 2 + + + + + 5 + ~ + 1.5 + + + 1.25 + + + 1.25 + + + 5.75 + + + 1.25 + + + 1.25 + + + 1.25 + + + 1.5 + + + + +6.75 + + + + + + +6.75 + 2 + + + + + + \ No newline at end of file diff --git a/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj b/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj index 4668062..7418663 100644 --- a/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj +++ b/RGB.NET.Devices.Logitech/RGB.NET.Devices.Logitech.csproj @@ -187,6 +187,9 @@ + + Designer + Designer