mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 04:56:44 +00:00
Added events in the update-process
This commit is contained in:
1 parent
a0a0132ca0
commit
6f2e77b797
6 files changed
+62
-12
No files matched your search
@@ -146,18 +146,9 @@ namespace CUE.NET.Devices.Keyboard
|
||||
#region Update
|
||||
|
||||
/// <summary>
|
||||
/// Updates all groups and effects and perform an update for all dirty keys, or all keys if flushLeds is set to true.
|
||||
/// Updates all brushes on the keyboard and on groups.
|
||||
/// </summary>
|
||||
/// <param name="flushLeds">Specifies whether all keys (including clean ones) should be updated.</param>
|
||||
public override void Update(bool flushLeds = false)
|
||||
{
|
||||
UpdateBrushes();
|
||||
|
||||
// Perform 'real' update
|
||||
base.Update(flushLeds);
|
||||
}
|
||||
|
||||
private void UpdateBrushes()
|
||||
protected override void DeviceUpdate()
|
||||
{
|
||||
if (Brush != null)
|
||||
ApplyBrush(this.ToList(), Brush);
|
||||
@@ -203,7 +194,7 @@ namespace CUE.NET.Devices.Keyboard
|
||||
}
|
||||
}
|
||||
// ReSharper disable once CatchAllClause
|
||||
catch (Exception ex) { ManageException(ex); }
|
||||
catch (Exception ex) { OnException(ex); }
|
||||
}
|
||||
|
||||
public IEnumerable<CorsairLed> GetLeds()
|
||||
|
||||
Reference in new issue
Block a user