diff --git a/app/Peripherals/Mouse/Models/SpathaX.cs b/app/Peripherals/Mouse/Models/SpathaX.cs new file mode 100644 index 00000000..9655ffef --- /dev/null +++ b/app/Peripherals/Mouse/Models/SpathaX.cs @@ -0,0 +1,106 @@ + +namespace GHelper.Peripherals.Mouse.Models +{ + //SPATHA_WIRELESS + public class SpathaX : AsusMouse + { + public SpathaX() : base(0x0B05, 0x1979, "mi_00", true) + { + } + + protected SpathaX(ushort vendorId, bool wireless) : base(0x0B05, vendorId, "mi_00", wireless) + { + } + + public override string GetDisplayName() + { + return "ROG Spatha X (Wireless)"; + } + + public override PollingRate[] SupportedPollingrates() + { + return new PollingRate[] { + PollingRate.PR250Hz, + PollingRate.PR500Hz, + PollingRate.PR1000Hz + }; + } + + public override bool HasAngleSnapping() + { + return true; + } + + public override int ProfileCount() + { + return 5; + } + + public override int DPIProfileCount() + { + return 4; + } + + public override int MaxDPI() + { + return 19_000; + } + + public override bool HasXYDPI() + { + return false; + } + + public override bool HasDebounceSetting() + { + return false; + } + + public override bool HasLiftOffSetting() + { + return true; + } + + public override bool HasRGB() + { + return true; + } + + public override LightingZone[] SupportedLightingZones() + { + return new LightingZone[] { LightingZone.Logo, LightingZone.Scrollwheel, LightingZone.Underglow }; + } + + public override bool HasAutoPowerOff() + { + return true; + } + + public override bool HasAngleTuning() + { + return false; + } + + public override bool HasLowBatteryWarning() + { + return true; + } + + public override bool HasDPIColors() + { + return true; + } + } + + public class SpathaXWired : SpathaX + { + public SpathaXWired() : base(0x1977, false) + { + } + + public override string GetDisplayName() + { + return "ROG Spatha X (Wired)"; + } + } +} diff --git a/app/Peripherals/PeripheralsProvider.cs b/app/Peripherals/PeripheralsProvider.cs index 3f72b611..4619a261 100644 --- a/app/Peripherals/PeripheralsProvider.cs +++ b/app/Peripherals/PeripheralsProvider.cs @@ -212,6 +212,7 @@ namespace GHelper.Peripherals DetectMouse(new Chakram()); DetectMouse(new ChakramWired()); DetectMouse(new ChakramCore()); + DetectMouse(new SpathaX()); } public static void DetectMouse(AsusMouse am)