From 78cbfc8813cce0ad3cfc6a608b609fdb4c322189 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Sun, 30 Jul 2023 11:18:15 +0200 Subject: [PATCH] Added TUF M4 Wireless mouse. --- app/Peripherals/Mouse/Models/TUFM4Wireless.cs | 80 +++++++++++++++++++ app/Peripherals/PeripheralsProvider.cs | 1 + 2 files changed, 81 insertions(+) create mode 100644 app/Peripherals/Mouse/Models/TUFM4Wireless.cs diff --git a/app/Peripherals/Mouse/Models/TUFM4Wireless.cs b/app/Peripherals/Mouse/Models/TUFM4Wireless.cs new file mode 100644 index 00000000..e7141ad6 --- /dev/null +++ b/app/Peripherals/Mouse/Models/TUFM4Wireless.cs @@ -0,0 +1,80 @@ +namespace GHelper.Peripherals.Mouse.Models +{ + //P306_Wireless + public class TUFM4Wirelss : AsusMouse + { + public TUFM4Wirelss() : base(0x0B05, 0x19F4, "mi_00", true) + { + } + + public override int DPIProfileCount() + { + return 4; + } + + public override string GetDisplayName() + { + return "TUF GAMING M4 (Wireless)"; + } + + + public override PollingRate[] SupportedPollingrates() + { + return new PollingRate[] { + PollingRate.PR125Hz, + PollingRate.PR250Hz, + PollingRate.PR500Hz, + PollingRate.PR1000Hz + }; + } + + public override int ProfileCount() + { + return 3; + } + public override int MaxDPI() + { + return 12_000; + } + + public override bool HasLiftOffSetting() + { + return false; + } + + public override bool HasAutoPowerOff() + { + return true; + } + + public override bool HasAngleSnapping() + { + return true; + } + + public override bool HasAngleTuning() + { + return false; + } + + public override bool HasLowBatteryWarning() + { + return true; + } + + public override bool HasDPIColors() + { + return false; + } + + public override int DPIIncrements() + { + return 100; + } + + public override bool CanChangeDPIProfile() + { + return true; + } + } +} diff --git a/app/Peripherals/PeripheralsProvider.cs b/app/Peripherals/PeripheralsProvider.cs index 02f8a256..3c23576a 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -179,6 +179,7 @@ namespace GHelper.Peripherals DetectMouse(new ChakramXWired()); DetectMouse(new GladiusIIIAimpoint()); DetectMouse(new GladiusIIIAimpointWired()); + DetectMouse(new TUFM4Wirelss()); } public static void DetectMouse(AsusMouse am)