Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion RGB.NET.Devices.Logitech/PerKey/LogitechPerKeyRGBDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,25 @@ internal LogitechPerKeyRGBDevice(LogitechRGBDeviceInfo info, IUpdateQueue update
: base(info, updateQueue)
{
this._ledMapping = ledMapping;

InitializeLayout();
}

#endregion

#region Methods

private void InitializeLayout()
{
foreach ((LedId ledId, LogitechLedId mapping) in _ledMapping)
{
// TODO: Impove layout (curently places them in a grid)
AddLed(ledId, new Point(0, 0), new Size(10, 10));
}
Comment thread
megabytesme marked this conversation as resolved.
Outdated
}

/// <inheritdoc />
protected override object GetLedCustomData(LedId ledId) => _ledMapping.TryGetValue(ledId, out LogitechLedId logitechLedId) ? logitechLedId : -1;

#endregion
}
Loading