using System.Collections.Generic; using RGB.NET.Core; using RGB.NET.Devices.Wooting.Native; namespace RGB.NET.Devices.Wooting.Generic { /// /// /// Represents the update-queue performing updates for cooler master devices. /// public class WootingUpdateQueue : UpdateQueue { #region Constructors /// /// Initializes a new instance of the class. /// /// The update trigger used by this queue. public WootingUpdateQueue(IDeviceUpdateTrigger updateTrigger) : base(updateTrigger) { } #endregion #region Methods /// protected override void Update(Dictionary dataSet) { foreach (KeyValuePair data in dataSet) { (int row, int column) = ((int, int))data.Key; _WootingSDK.ArraySetSingle((byte)row, (byte)column, data.Value.GetR(), data.Value.GetG(), data.Value.GetB()); } _WootingSDK.ArrayUpdateKeyboard(); } #endregion } }