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:
DarthAffe committed 2018-04-07 10:46:23 +02:00
1 parent 72414d2110
commit 33c8e69f93
50 files changed
+224 -162

No files matched your search

@@ -56,7 +56,7 @@ namespace RGB.NET.Devices.Logitech
/// </summary>
public Func<CultureInfo> GetCulture { get; set; } = CultureHelper.GetCurrentCulture;
public UpdateTrigger UpdateTrigger { get; private set; }
public DeviceUpdateTrigger UpdateTrigger { get; private set; }
private LogitechPerDeviceUpdateQueue _perDeviceUpdateQueue;
private LogitechPerKeyUpdateQueue _perKeyUpdateQueue;
@@ -73,7 +73,7 @@ namespace RGB.NET.Devices.Logitech
if (_instance != null) throw new InvalidOperationException($"There can be only one instance of type {nameof(LogitechDeviceProvider)}");
_instance = this;
UpdateTrigger = new UpdateTrigger();
UpdateTrigger = new DeviceUpdateTrigger();
_perDeviceUpdateQueue = new LogitechPerDeviceUpdateQueue(UpdateTrigger);
_perKeyUpdateQueue = new LogitechPerKeyUpdateQueue(UpdateTrigger);
}
@@ -10,7 +10,7 @@ namespace RGB.NET.Devices.Logitech
{
#region Constructors
public LogitechPerDeviceUpdateQueue(IUpdateTrigger updateTrigger)
public LogitechPerDeviceUpdateQueue(IDeviceUpdateTrigger updateTrigger)
: base(updateTrigger)
{ }
@@ -15,7 +15,7 @@ namespace RGB.NET.Devices.Logitech
#region Constructors
public LogitechPerKeyUpdateQueue(IUpdateTrigger updateTrigger)
public LogitechPerKeyUpdateQueue(IDeviceUpdateTrigger updateTrigger)
: base(updateTrigger)
{
_bitmap = BitmapMapping.CreateBitmap();