diff --git a/app/Peripherals/Mouse/Models/P711.cs b/app/Peripherals/Mouse/Models/P711.cs new file mode 100644 index 00000000..3b850be4 --- /dev/null +++ b/app/Peripherals/Mouse/Models/P711.cs @@ -0,0 +1,81 @@ +namespace GHelper.Peripherals.Mouse.Models +{ + public class P711 : AsusMouse + { + private static string[] POLLING_RATES = { "125Hz", "250Hz", "500Hz", "1000Hz" }; + + public P711() : base(0x0B05, 0x1A70, "mi_01", true) + { + } + + protected P711(ushort vendorId, bool wireless) : base(0x0B05, vendorId, "mi_01", wireless) + { + } + + public override int DPIProfileCount() + { + return 4; + } + + public override string GetDisplayName() + { + return "ROG Gladius III (Wireless)"; + } + + + public override string[] PollingRateDisplayStrings() + { + return POLLING_RATES; + } + + public override int ProfileCount() + { + throw new NotImplementedException(); + } + public override int MaxDPI() + { + return 36_000; + } + + public override bool HasLiftOffSetting() + { + return true; + } + + public override bool HasRGB() + { + return true; + } + + public override bool HasEnergySettings() + { + return true; + } + + public override bool HasAngleSnapping() + { + return true; + } + + public override bool IsLightingModeSupported(LightingMode lightingMode) + { + return lightingMode == LightingMode.Static + || lightingMode == LightingMode.Breathing + || lightingMode == LightingMode.ColorCycle + || lightingMode == LightingMode.React + || lightingMode == LightingMode.BatteryState; + } + } + + public class P711Wired : P711 + { + public P711Wired() : base(0x1A72, false) + { + } + + public override string GetDisplayName() + { + return "ROG Gladius III (Wired)"; + } + } +} diff --git a/app/Peripherals/PeripheralsProvider.cs b/app/Peripherals/PeripheralsProvider.cs index 29851872..69dc658c 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -138,6 +138,8 @@ namespace GHelper.Peripherals //Add one line for every supported mouse class here to support them. DetectMouse(new ChakramX()); DetectMouse(new ChakramXWired()); + DetectMouse(new P711()); + DetectMouse(new P711Wired()); } public static void DetectMouse(AsusMouse am)