using RGB.NET.Core; namespace RGB.NET.Devices.SteelSeries; /// /// /// /// Represents a SteelSeries-device. (keyboard, mouse, headset, mousepad). /// public sealed class SteelSeriesRGBDevice : AbstractRGBDevice, ISteelSeriesRGBDevice, IUnknownDevice//TODO DarthAffe 18.04.2020: It's know which kind of device this is, but they would need to be separated { #region Properties & Fields private readonly LedMapping _ledMapping; #endregion #region Constructors /// /// Initializes a new instance of the class. /// internal SteelSeriesRGBDevice(SteelSeriesRGBDeviceInfo info, string apiName, LedMapping ledMapping, IDeviceUpdateTrigger updateTrigger) : base(info, new SteelSeriesDeviceUpdateQueue(updateTrigger, apiName)) { this._ledMapping = ledMapping; InitializeLayout(); } #endregion #region Methods private void InitializeLayout() { int counter = 0; foreach ((LedId ledId, _) in _ledMapping) AddLed(ledId, new Point((counter++) * 10, 0), new Size(10, 10)); } /// protected override object GetLedCustomData(LedId ledId) => _ledMapping[ledId]; #endregion }