mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Added abnt and ks keyboard-layouts
This commit is contained in:
1 parent
190f5df025
commit
f00ab7f581
3 files changed
+15
-12
No files matched your search
@@ -1,10 +1,13 @@
|
||||
namespace RGB.NET.Core
|
||||
// ReSharper disable InconsistentNaming
|
||||
namespace RGB.NET.Core
|
||||
{
|
||||
public enum KeyboardLayoutType
|
||||
{
|
||||
Unknown = 0,
|
||||
Ansi = 1,
|
||||
Iso = 2,
|
||||
Jis = 3
|
||||
ANSI = 1,
|
||||
ISO = 2,
|
||||
JIS = 3,
|
||||
ABNT = 4,
|
||||
KS = 5
|
||||
}
|
||||
}
|
||||
@@ -34,9 +34,9 @@ namespace RGB.NET.Devices.CoolerMaster
|
||||
this.Layout = physicalKeyboardLayout switch
|
||||
{
|
||||
CoolerMasterPhysicalKeyboardLayout.UNINIT => KeyboardLayoutType.Unknown,
|
||||
CoolerMasterPhysicalKeyboardLayout.US => KeyboardLayoutType.Ansi,
|
||||
CoolerMasterPhysicalKeyboardLayout.EU => KeyboardLayoutType.Iso,
|
||||
CoolerMasterPhysicalKeyboardLayout.JP => KeyboardLayoutType.Jis,
|
||||
CoolerMasterPhysicalKeyboardLayout.US => KeyboardLayoutType.ANSI,
|
||||
CoolerMasterPhysicalKeyboardLayout.EU => KeyboardLayoutType.ISO,
|
||||
CoolerMasterPhysicalKeyboardLayout.JP => KeyboardLayoutType.JIS,
|
||||
_ => KeyboardLayoutType.Unknown
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,11 +45,11 @@ namespace RGB.NET.Devices.Corsair
|
||||
this.LogicalLayout = (CorsairLogicalKeyboardLayout)nativeInfo.logicalLayout;
|
||||
this.Layout = PhysicalLayout switch
|
||||
{
|
||||
CorsairPhysicalKeyboardLayout.US => KeyboardLayoutType.Ansi,
|
||||
CorsairPhysicalKeyboardLayout.UK => KeyboardLayoutType.Iso,
|
||||
CorsairPhysicalKeyboardLayout.BR => KeyboardLayoutType.Unknown,
|
||||
CorsairPhysicalKeyboardLayout.JP => KeyboardLayoutType.Jis,
|
||||
CorsairPhysicalKeyboardLayout.KR => KeyboardLayoutType.Unknown,
|
||||
CorsairPhysicalKeyboardLayout.US => KeyboardLayoutType.ANSI,
|
||||
CorsairPhysicalKeyboardLayout.UK => KeyboardLayoutType.ISO,
|
||||
CorsairPhysicalKeyboardLayout.BR => KeyboardLayoutType.ABNT,
|
||||
CorsairPhysicalKeyboardLayout.JP => KeyboardLayoutType.JIS,
|
||||
CorsairPhysicalKeyboardLayout.KR => KeyboardLayoutType.KS,
|
||||
_ => KeyboardLayoutType.Unknown
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user