mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Init
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user