mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46:24 +00:00
Updated device providers to make everything compile again
This commit is contained in:
1 parent
6619539176
commit
57dc9afb32
67 files changed
+190
-661
No files matched your search
@@ -26,16 +26,14 @@ namespace RGB.NET.Devices.Logitech
|
||||
#region Methods
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void InitializeLayout()
|
||||
public override void Initialize(UpdateQueue updateQueue)
|
||||
{
|
||||
base.InitializeLayout();
|
||||
base.Initialize(updateQueue);
|
||||
|
||||
if (LedMapping.Count == 0)
|
||||
InitializeLed(LedId.Custom1, new Rectangle(0, 0, 10, 10));
|
||||
AddLed(LedId.Custom1, new Point(0, 0), new Size(10, 10));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override object CreateLedCustomData(LedId ledId) => (ledId, LogitechLedId.DEVICE);
|
||||
protected override object? GetLedCustomData(LedId ledId) => (ledId, LogitechLedId.DEVICE);
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void UpdateLeds(IEnumerable<Led> ledsToUpdate) => UpdateQueue.SetData(ledsToUpdate.Where(x => x.Color.A > 0).Take(1));
|
||||
|
||||
Reference in new issue
Block a user