From 7d5b70c4b4282c1c6880e2753f7dcd182690d2b0 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Mon, 25 Mar 2024 10:08:52 +0100 Subject: [PATCH] Support for Chinese TuF M4 Wireless (P310) (#2285) * 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 --- app/Peripherals/Mouse/Models/TUFM4Wireless.cs | 19 +++++++++++++++++++ app/Peripherals/PeripheralsProvider.cs | 1 + 2 files changed, 20 insertions(+) diff --git a/app/Peripherals/Mouse/Models/TUFM4Wireless.cs b/app/Peripherals/Mouse/Models/TUFM4Wireless.cs index c47d1a6d..774bdce3 100644 --- a/app/Peripherals/Mouse/Models/TUFM4Wireless.cs +++ b/app/Peripherals/Mouse/Models/TUFM4Wireless.cs @@ -7,6 +7,10 @@ { } + public TUFM4Wirelss(ushort productId) : base(0x0B05, productId, "mi_00", true) + { + } + public override int DPIProfileCount() { return 4; @@ -82,4 +86,19 @@ return true; } } + + //P310 + public class TUFM4WirelssCN : TUFM4Wirelss + { + public TUFM4WirelssCN() : base(0x1A8D) + { + + } + + + public override string GetDisplayName() + { + return "TX GAMING MOUSE (Wireless)"; + } + } } diff --git a/app/Peripherals/PeripheralsProvider.cs b/app/Peripherals/PeripheralsProvider.cs index f073e339..fe369985 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -194,6 +194,7 @@ namespace GHelper.Peripherals DetectMouse(new ROGKerisWirelessEvaEdition()); DetectMouse(new ROGKerisWirelessEvaEditionWired()); DetectMouse(new TUFM4Wirelss()); + DetectMouse(new TUFM4WirelssCN()); DetectMouse(new StrixImpactIIWireless()); DetectMouse(new StrixImpactIIWirelessWired()); DetectMouse(new GladiusIII());