From ff92229ecb7d62d810e5bfca15f899ed8ead6e22 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:38:59 +0200 Subject: [PATCH] TUFM4Air https://github.com/seerge/g-helper/issues/2729 --- app/Peripherals/Mouse/Models/TUFM4Air.cs | 81 ++++++++++++++++++++++++ app/Peripherals/PeripheralsProvider.cs | 1 + 2 files changed, 82 insertions(+) create mode 100644 app/Peripherals/Mouse/Models/TUFM4Air.cs diff --git a/app/Peripherals/Mouse/Models/TUFM4Air.cs b/app/Peripherals/Mouse/Models/TUFM4Air.cs new file mode 100644 index 00000000..18ba7efb --- /dev/null +++ b/app/Peripherals/Mouse/Models/TUFM4Air.cs @@ -0,0 +1,81 @@ +namespace GHelper.Peripherals.Mouse.Models +{ + //P307 + public class TUFM4Air : AsusMouse + { + public TUFM4Air() : base(0x0B05, 0x1A03, "mi_00", false) + { + } + + public override int DPIProfileCount() + { + return 4; + } + + public override string GetDisplayName() + { + return "TUF GAMING M4 Air"; + } + + + public override PollingRate[] SupportedPollingrates() + { + return new PollingRate[] { + PollingRate.PR125Hz, + PollingRate.PR250Hz, + PollingRate.PR500Hz, + PollingRate.PR1000Hz + }; + } + + public override int ProfileCount() + { + return 1; + } + public override int MaxDPI() + { + return 16_000; + } + + public override bool HasLiftOffSetting() + { + return true; + } + + public override bool HasDebounceSetting() + { + return true; + } + + public override bool HasAngleSnapping() + { + return true; + } + + public override bool HasAngleTuning() + { + return false; + } + + public override bool HasBattery() + { + return false; + } + + 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 174b5207..1dff00ad 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -195,6 +195,7 @@ namespace GHelper.Peripherals DetectMouse(new ROGKeris()); DetectMouse(new ROGKerisWirelessEvaEdition()); DetectMouse(new ROGKerisWirelessEvaEditionWired()); + DetectMouse(new TUFM4Air()); DetectMouse(new TUFM4Wirelss()); DetectMouse(new TUFM4WirelssCN()); DetectMouse(new StrixImpactIIWireless());