private void OnColorUpdate(object sender, RzBroadcastColorChangedEventArgs e)
 {
     Logger.Trace("Razer broadcast colors updated");
     for (var i = 0; i < _colors.Length; i++)
     {
         _colors[i] = LedColor.Unpack(e.Colors[i]);
     }
 }
Esempio n. 2
0
 private void OnColorUpdate(object sender, RzBroadcastColorChangedEventArgs e)
 {
     for (var i = 0; i < _colors.Length; i++)
     {
         _colors[i].R = (byte)((e.Colors[i] >> 0) & 0xff);
         _colors[i].G = (byte)((e.Colors[i] >> 8) & 0xff);
         _colors[i].B = (byte)((e.Colors[i] >> 16) & 0xff);
     }
 }