This commit is contained in:
Serge
2024-05-13 17:05:03 +02:00
parent c7d3b4ea3a
commit a6b2291586
2 changed files with 19 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
using GHelper.AnimeMatrix.Communication;
using GHelper.AnimeMatrix.Communication.Platform;
using GHelper.Input;
using System.Runtime.CompilerServices;
using System.Text;
@@ -1744,6 +1745,17 @@ namespace GHelper.Peripherals.Mouse
}
}
public void SetColor(Color color)
{
var ls = new LightingSetting();
ls.RGBColor = color;
ls.Brightness = InputDispatcher.GetBacklight() * 25;
WriteForResponse(GetUpdateLightingModePacket(ls, LightingZone.All));
WriteForResponse(GetSaveProfilePacket());
}
public void SetLightingSetting(LightingSetting lightingSetting, LightingZone zone)
{
if (!HasRGB() || lightingSetting is null)