mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Changed the surface to work with update-triggers instead of fixed update-modes. Adapted device-update-triggers to match the general concept
This commit is contained in:
1 parent
72414d2110
commit
33c8e69f93
50 files changed
+224
-162
No files matched your search
@@ -66,7 +66,7 @@ namespace RGB.NET.Devices.Corsair
|
||||
/// <inheritdoc />
|
||||
public IEnumerable<IRGBDevice> Devices { get; private set; }
|
||||
|
||||
public UpdateTrigger UpdateTrigger { get; private set; }
|
||||
public DeviceUpdateTrigger UpdateTrigger { get; private set; }
|
||||
private CorsairUpdateQueue _updateQueue;
|
||||
|
||||
#endregion
|
||||
@@ -82,7 +82,7 @@ namespace RGB.NET.Devices.Corsair
|
||||
if (_instance != null) throw new InvalidOperationException($"There can be only one instance of type {nameof(CorsairDeviceProvider)}");
|
||||
_instance = this;
|
||||
|
||||
UpdateTrigger = new UpdateTrigger();
|
||||
UpdateTrigger = new DeviceUpdateTrigger();
|
||||
_updateQueue = new CorsairUpdateQueue(UpdateTrigger);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace RGB.NET.Devices.Corsair
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public CorsairUpdateQueue(IUpdateTrigger updateTrigger)
|
||||
public CorsairUpdateQueue(IDeviceUpdateTrigger updateTrigger)
|
||||
: base(updateTrigger)
|
||||
{ }
|
||||
|
||||
|
||||
Reference in new issue
Block a user