mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 00:58:31 +00:00
34 lines
836 B
C#
34 lines
836 B
C#
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Drawing;
|
|
using CUE.NET.Devices.Keyboard.Extensions;
|
|
|
|
namespace CUE.NET.Devices.Keyboard.Keys
|
|
{
|
|
public class BaseKeyGroup : IKeyGroup
|
|
{
|
|
#region Properties & Fields
|
|
|
|
internal CorsairKeyboard Keyboard { get; }
|
|
|
|
public IEnumerable<CorsairKey> Keys => new ReadOnlyCollection<CorsairKey>(GroupKeys);
|
|
protected IList<CorsairKey> GroupKeys { get; } = new List<CorsairKey>();
|
|
|
|
public Color Color { get; set; } = Color.Transparent;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
protected BaseKeyGroup(CorsairKeyboard keyboard, bool autoAttach = true)
|
|
{
|
|
this.Keyboard = keyboard;
|
|
|
|
if (autoAttach)
|
|
this.Attach();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|