Added key-position, initialized keyboard with available keys

This commit is contained in:
DarthAffe committed 2015-09-19 18:49:41 +02:00
1 parent 0167828a19
commit 64e0902046
4 files changed
+25 -8

No files matched your search

+5 -2
View File
@@ -1,4 +1,5 @@
using CUE.NET.Devices.Generic;
using System.Drawing;
using CUE.NET.Devices.Generic;
using CUE.NET.Devices.Keyboard.Enums;
namespace CUE.NET.Devices.Keyboard.Keys
@@ -9,15 +10,17 @@ namespace CUE.NET.Devices.Keyboard.Keys
public CorsairKeyboardKeyId KeyId { get; }
public CorsairLed Led { get; }
public RectangleF KeyRectangle { get; }
#endregion
#region Constructors
internal CorsairKey(CorsairKeyboardKeyId keyId, CorsairLed led)
internal CorsairKey(CorsairKeyboardKeyId keyId, CorsairLed led, RectangleF keyRectangle)
{
this.KeyId = keyId;
this.Led = led;
this.KeyRectangle = keyRectangle;
}
#endregion