// ReSharper disable MemberCanBePrivate.Global // ReSharper disable UnusedAutoPropertyAccessor.Global using CUE.NET.Devices.Generic; using CUE.NET.Devices.Keyboard.Enums; namespace CUE.NET.Devices.Keyboard.Keys { /// /// Represents a key of a corsair keyboard. /// public class CorsairKey { #region Properties & Fields /// /// Gets the key-ID of the key. /// public CorsairKeyboardKeyId KeyId { get; } /// /// Gets the LED of the key. /// public CorsairLed Led { get; } #endregion #region Constructors /// /// Initializes a new instance of the class. /// /// The key-ID of the key. /// The LED of the key. internal CorsairKey(CorsairKeyboardKeyId keyId, CorsairLed led) { this.KeyId = keyId; this.Led = led; } #endregion #region Operators public static implicit operator CorsairLed(CorsairKey key) { return key.Led; } #endregion } }