Added key-access through chars

This commit is contained in:
DarthAffe committed 2015-09-20 10:36:48 +02:00
1 parent 5d96a1ba11
commit 61b712d026
5 files changed
+15 -2

No files matched your search

@@ -5,6 +5,7 @@ namespace CUE.NET.Devices.Headset.Enums
{
public enum CorsairHeadsetLedId
{
Invalid = 0,
LeftLogo = 152,
RightLogo = 153
}
+6
View File
@@ -32,6 +32,12 @@ namespace CUE.NET.Devices.Keyboard
private set { throw new NotSupportedException(); }
}
public CorsairKey this[char key]
{
get { return this[_CUESDK.CorsairGetLedIdForKeyName(key)]; }
private set { throw new NotSupportedException(); }
}
public CorsairKey this[PointF location]
{
get { return _keys.Values.FirstOrDefault(x => x.KeyRectangle.Contains(location)); }
@@ -5,6 +5,7 @@ namespace CUE.NET.Devices.Keyboard.Enums
{
public enum CorsairKeyboardKeyId
{
Invalid = 0,
Escape = 1,
F1 = 2,
F2 = 3,
@@ -5,6 +5,7 @@ namespace CUE.NET.Devices.Mouse.Enums
{
public enum CorsairMouseLedId
{
Invalid = 0,
B1 = 148,
B2 = 149,
B3 = 150,