1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2026-03-23 23:38:45 +00:00

Apply suggestion from @DarthAffe (add all LEDs in a line with default key-size of 19mm)

Co-authored-by: DarthAffe <darthaffe@wyrez.org>
This commit is contained in:
Ben 2026-03-19 20:29:36 +00:00 committed by GitHub
parent cf1cb4a329
commit 66597cf1b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,11 +34,10 @@ public sealed class LogitechPerKeyRGBDevice : LogitechRGBDevice<LogitechRGBDevic
private void InitializeLayout() private void InitializeLayout()
{ {
int pos = 0;
foreach ((LedId ledId, LogitechLedId mapping) in _ledMapping) foreach ((LedId ledId, LogitechLedId mapping) in _ledMapping)
{ AddLed(ledId, new Point(pos++ * 19, 0), new Size(19, 19));
// TODO: Impove layout (curently places them in a grid)
AddLed(ledId, new Point(0, 0), new Size(10, 10));
}
} }
/// <inheritdoc /> /// <inheritdoc />