mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 13:06:24 +00:00
Refactored auto-update to be SDK-wide
This commit is contained in:
1 parent
16c297611e
commit
8b87270b69
7 files changed
+139
-93
No files matched your search
@@ -36,9 +36,13 @@ namespace SimpleDevTest
|
||||
CueSDK.Initialize();
|
||||
Console.WriteLine("Initialized with " + CueSDK.LoadedArchitecture + "-SDK");
|
||||
|
||||
CueSDK.UpdateMode = UpdateMode.Continuous;
|
||||
|
||||
IBrush rainbowBrush = new LinearGradientBrush(new RainbowGradient());
|
||||
rainbowBrush.AddEffect(new FlashEffect());
|
||||
|
||||
AddTestBrush(CueSDK.KeyboardSDK, rainbowBrush);
|
||||
AddTestBrush(CueSDK.KeyboardSDK, rainbowBrush);
|
||||
AddTestBrush(CueSDK.KeyboardSDK, rainbowBrush);
|
||||
AddTestBrush(CueSDK.MouseSDK, rainbowBrush);
|
||||
AddTestBrush(CueSDK.HeadsetSDK, rainbowBrush);
|
||||
@@ -378,7 +382,6 @@ namespace SimpleDevTest
|
||||
{
|
||||
if (device == null) return;
|
||||
|
||||
device.UpdateMode = UpdateMode.Continuous;
|
||||
device.Brush = (SolidColorBrush)Color.Black;
|
||||
ILedGroup leds = new ListLedGroup(device, device);
|
||||
leds.Brush = brush;
|
||||
|
||||
Reference in new issue
Block a user