using System; using System.Globalization; using RGB.NET.Core; using RGB.NET.Devices.Wooting.Enum; using RGB.NET.Devices.Wooting.Generic; namespace RGB.NET.Devices.Wooting.Keyboard { /// /// /// Represents a generic information for a . /// public class WootingKeyboardRGBDeviceInfo : WootingRGBDeviceInfo { #region Properties & Fields /// /// Gets the of the . /// public WootingPhysicalKeyboardLayout PhysicalLayout { get; } /// /// Gets the of the . /// public WootingLogicalKeyboardLayout LogicalLayout { get; private set; } #endregion #region Constructors /// /// /// Internal constructor of managed . /// /// The index of the . /// The of the . /// The of the layout this keyboard is using internal WootingKeyboardRGBDeviceInfo(WootingDevicesIndexes deviceIndex, WootingPhysicalKeyboardLayout physicalKeyboardLayout, CultureInfo culture) : base(RGBDeviceType.Keyboard, deviceIndex) { this.PhysicalLayout = physicalKeyboardLayout; switch (physicalKeyboardLayout) { case WootingPhysicalKeyboardLayout.US: this.LogicalLayout = WootingLogicalKeyboardLayout.US; break; case WootingPhysicalKeyboardLayout.UK: this.LogicalLayout = WootingLogicalKeyboardLayout.UK; break; } } #endregion } }