From 251d32e115d4172ff6f3e281fcc1d3853f00d0d4 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Sun, 3 Mar 2024 17:15:40 +0100 Subject: [PATCH] Mouse fixes (#2159) * 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. --- app/Peripherals/Mouse/Models/StrixCarry.cs | 7 ++++++- app/Peripherals/Mouse/Models/StrixImpactII.cs | 19 +++++++++++++++++++ app/Peripherals/PeripheralsProvider.cs | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/app/Peripherals/Mouse/Models/StrixCarry.cs b/app/Peripherals/Mouse/Models/StrixCarry.cs index 5fcb906d..4e243fd1 100644 --- a/app/Peripherals/Mouse/Models/StrixCarry.cs +++ b/app/Peripherals/Mouse/Models/StrixCarry.cs @@ -37,7 +37,12 @@ } public override int DPIIncrements() { - return 100; + return 50; + } + + public override int MinDPI() + { + return 50; } public override bool HasDebounceSetting() diff --git a/app/Peripherals/Mouse/Models/StrixImpactII.cs b/app/Peripherals/Mouse/Models/StrixImpactII.cs index 6d16d3a5..62f8ec97 100644 --- a/app/Peripherals/Mouse/Models/StrixImpactII.cs +++ b/app/Peripherals/Mouse/Models/StrixImpactII.cs @@ -7,6 +7,10 @@ { } + public StrixImpactII(ushort pid) : base(0x0B05, pid, "mi_00", false) + { + } + public override int DPIProfileCount() { return 4; @@ -174,4 +178,19 @@ } } } + + public class StrixImpactIIElectroPunk : StrixImpactII + { + + public StrixImpactIIElectroPunk() : base(0x1956) + { + + } + + + public override string GetDisplayName() + { + return "ROG Strix Impact II Electro Punk"; + } + } } diff --git a/app/Peripherals/PeripheralsProvider.cs b/app/Peripherals/PeripheralsProvider.cs index 9042c5b1..7d600bb0 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -209,6 +209,7 @@ namespace GHelper.Peripherals DetectMouse(new PugioII()); DetectMouse(new PugioIIWired()); DetectMouse(new StrixImpactII()); + DetectMouse(new StrixImpactIIElectroPunk()); DetectMouse(new Chakram()); DetectMouse(new ChakramWired()); DetectMouse(new ChakramCore());