using RGB.NET.Core;
namespace RGB.NET.Devices.Asus
{
///
///
/// Represents a Asus headset.
///
public class AsusHeadsetRGBDevice : AsusRGBDevice, IHeadset
{
#region Constructors
///
///
/// Initializes a new instance of the class.
///
/// The specific information provided by Asus for the headset.
internal AsusHeadsetRGBDevice(AsusRGBDeviceInfo info, IDeviceUpdateTrigger updateTrigger)
: base(info, updateTrigger)
{
InitializeLayout();
}
#endregion
#region Methods
private void InitializeLayout()
{
int ledCount = DeviceInfo.Device.Lights.Count;
for (int i = 0; i < ledCount; i++)
AddLed(LedId.Headset1 + i, new Point(i * 40, 0), new Size(40, 8));
}
///
protected override object? GetLedCustomData(LedId ledId) => (int)ledId - (int)LedId.Headset1;
#endregion
}
}