From 34161eee7ce6abb510d8d6f72b2fcdbcbc66af1c Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Thu, 30 May 2024 10:50:18 +0200 Subject: [PATCH] Support for ROG Keris P509 (#2655) * Support for Strix Carry (P508) * Fixes polling rate, angle snapping and debounce for Gladius II Origin. * The Gen2 version of the TuF M3 uses 0-100 for brightness. * Adds support for ROG Strix Impact III (P518) * Import/Export feature for mice. * Suppor for Strix Impact (P303) * Support for Strix Impact II Electro Punk * Strix Carry has 50 DPI minimum and increments of 50. * Respect top-most setting of GHelper * Fixes to the buttons to be wider to fit longer translations. * Basic support for the Galdius III EVA02 * Gladius wireless and wired PIDs were switched * Add support for the chinese variant of the M4 Wireless, the P310 * Apparently there is another Gladius III that is not wireless at all. Renaming the wireless to make it a little less confusing. * Adds Support for Galdius III (wired) P514 * Support for P504 Glaidus II PKN * Support for the ROG Keris wired mouse P509 --- .../Mouse/Models/ROGKerisWireless.cs | 22 ++++++++++++++++--- app/Peripherals/PeripheralsProvider.cs | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app/Peripherals/Mouse/Models/ROGKerisWireless.cs b/app/Peripherals/Mouse/Models/ROGKerisWireless.cs index 36c133ee..52a6e982 100644 --- a/app/Peripherals/Mouse/Models/ROGKerisWireless.cs +++ b/app/Peripherals/Mouse/Models/ROGKerisWireless.cs @@ -159,15 +159,31 @@ } } - public class ROGKerisWirelessWiredC : ROGKerisWireless + //P509 + public class ROGKeris : ROGKerisWireless { - public ROGKerisWirelessWiredC() : base(0x195C, false) + public ROGKeris() : base(0x195C, false) { } public override string GetDisplayName() { - return "ROG Keris (Wired)"; + return "ROG Keris"; + } + + public override bool HasBattery() + { + return false; + } + + public override bool HasLowBatteryWarning() + { + return false; + } + + public override bool HasAutoPowerOff() + { + return false; } } diff --git a/app/Peripherals/PeripheralsProvider.cs b/app/Peripherals/PeripheralsProvider.cs index ea604eda..174b5207 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -192,7 +192,7 @@ namespace GHelper.Peripherals DetectMouse(new GladiusII()); DetectMouse(new ROGKerisWireless()); DetectMouse(new ROGKerisWirelessWired()); - DetectMouse(new ROGKerisWirelessWiredC()); + DetectMouse(new ROGKeris()); DetectMouse(new ROGKerisWirelessEvaEdition()); DetectMouse(new ROGKerisWirelessEvaEditionWired()); DetectMouse(new TUFM4Wirelss());