using CUE.NET.Devices.Generic;
using CUE.NET.Devices.Generic.Enums;
namespace CUE.NET.Devices
{
///
/// Represents the event-handler of the OnException-event.
///
/// The sender of the event.
/// The arguments provided by the event.
public delegate void OnExceptionEventHandler(object sender, OnExceptionEventArgs args);
///
/// Represents a generic cue device.
///
public interface ICueDevice
{
///
/// Gets generic information provided by CUE for the device.
///
IDeviceInfo DeviceInfo { get; }
///
/// Gets or sets the update-mode for the device.
///
UpdateMode UpdateMode { get; set; }
///
/// Gets or sets the update-frequency in seconds. (Calculate by using '1f / updates per second')
///
float UpdateFrequency { get; set; }
///
/// Occurs when a catched exception is thrown inside the device.
///
event OnExceptionEventHandler OnException;
///
/// Perform an update for all dirty keys, or all keys if flushLeds is set to true.
///
/// Specifies whether all keys (including clean ones) should be updated.
void Update(bool flushLeds = false);
}
}