mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Bundle slash lighting sleep animation with brightness setting https://github.com/seerge/g-helper/issues/2381
This commit is contained in:
@@ -88,6 +88,7 @@ namespace GHelper.AnimeMatrix
|
|||||||
{
|
{
|
||||||
deviceSlash.Init();
|
deviceSlash.Init();
|
||||||
deviceSlash.SetOptions(false, 0, 0);
|
deviceSlash.SetOptions(false, 0, 0);
|
||||||
|
deviceSlash.SetSleepActive(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -98,7 +99,7 @@ namespace GHelper.AnimeMatrix
|
|||||||
}
|
}
|
||||||
|
|
||||||
deviceSlash.Init();
|
deviceSlash.Init();
|
||||||
|
|
||||||
switch ((SlashMode)running)
|
switch ((SlashMode)running)
|
||||||
{
|
{
|
||||||
case SlashMode.Static:
|
case SlashMode.Static:
|
||||||
@@ -110,6 +111,8 @@ namespace GHelper.AnimeMatrix
|
|||||||
deviceSlash.Save();
|
deviceSlash.Save();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deviceSlash.SetSleepActive(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -121,7 +124,6 @@ namespace GHelper.AnimeMatrix
|
|||||||
if (deviceSlash is not null)
|
if (deviceSlash is not null)
|
||||||
{
|
{
|
||||||
deviceSlash.SetLidMode(matrixLid);
|
deviceSlash.SetLidMode(matrixLid);
|
||||||
deviceSlash.SetSleepActive(!matrixLid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (matrixLid || force)
|
if (matrixLid || force)
|
||||||
|
|||||||
Reference in New Issue
Block a user