mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Imprpved ambient mode
This commit is contained in:
@@ -532,7 +532,7 @@ namespace GHelper.USB
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isStrix && !isOldHeatmap)
|
if (isStrix)
|
||||||
{
|
{
|
||||||
ApplyDirect(Enumerable.Repeat(color, AURA_ZONES).ToArray(), init);
|
ApplyDirect(Enumerable.Repeat(color, AURA_ZONES).ToArray(), init);
|
||||||
return;
|
return;
|
||||||
@@ -540,8 +540,18 @@ namespace GHelper.USB
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AsusHid.WriteAura(AuraMessage(0, color, color, 0));
|
if (init) AsusHid.WriteAura(new byte[] { AsusHid.AURA_ID, 0xbc });
|
||||||
AsusHid.WriteAura(MESSAGE_SET);
|
|
||||||
|
byte[] buffer = new byte[64];
|
||||||
|
buffer[0] = AsusHid.AURA_ID;
|
||||||
|
buffer[1] = 0xbc;
|
||||||
|
buffer[2] = 1;
|
||||||
|
buffer[3] = 1;
|
||||||
|
buffer[9] = color.R;
|
||||||
|
buffer[10] = color.G;
|
||||||
|
buffer[11] = color.B;
|
||||||
|
|
||||||
|
AsusHid.WriteAura(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user