mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 13:06:24 +00:00
Added key-access through chars
This commit is contained in:
1 parent
5d96a1ba11
commit
61b712d026
5 files changed
+15
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user