diff --git a/app/AsusMouseSettings.cs b/app/AsusMouseSettings.cs index f0d30644..9e0fe6b9 100644 --- a/app/AsusMouseSettings.cs +++ b/app/AsusMouseSettings.cs @@ -473,6 +473,8 @@ namespace GHelper if (mouse.HasRGB()) { + sliderBrightness.Max = mouse.MaxBrightness(); + foreach (LightingMode lm in Enum.GetValues(typeof(LightingMode))) { if (mouse.IsLightingModeSupported(lm)) diff --git a/app/Peripherals/Mouse/AsusMouse.cs b/app/Peripherals/Mouse/AsusMouse.cs index 24d517c7..9df3ae44 100644 --- a/app/Peripherals/Mouse/AsusMouse.cs +++ b/app/Peripherals/Mouse/AsusMouse.cs @@ -936,6 +936,11 @@ namespace GHelper.Peripherals.Mouse return false; } + public virtual int MaxBrightness() + { + return 100; + } + //Override to remap lighting mode IDs. //From OpenRGB code it looks like some mice have different orders of the modes or do not support some modes at all. protected virtual byte IndexForLightingMode(LightingMode lightingMode)