// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedMember.Global
using System;
using System.IO;
using System.Reflection;
namespace RGB.NET.Devices.Logitech
{
///
/// Represents a logitech keyboard.
///
public class LogitechKeyboardRGBDevice : LogitechRGBDevice
{
#region Properties & Fields
///
/// Gets information about the .
///
public LogitechKeyboardRGBDeviceInfo KeyboardDeviceInfo { get; }
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The specific information provided by CUE for the keyboard
internal LogitechKeyboardRGBDevice(LogitechKeyboardRGBDeviceInfo info)
: base(info)
{
this.KeyboardDeviceInfo = info;
}
#endregion
#region Methods
///
protected override void InitializeLayout()
{
ApplyLayoutFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location),
$@"Layouts\Logitech\Keyboards\{KeyboardDeviceInfo.Model.Replace(" ", string.Empty).ToUpper()}\{KeyboardDeviceInfo.PhysicalLayout.ToString().ToUpper()}.xml"));
}
#endregion
}
}