Added Gladius III (P711) experimental class.

This commit is contained in:
IceStormNG
2023-07-23 18:57:02 +02:00
parent 6f70b54cd4
commit d4b0b484aa
2 changed files with 83 additions and 0 deletions

View File

@@ -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)";
}
}
}

View File

@@ -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)