mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Compare commits
No commits in common. "7ad1e595a9c7d4d086775e8d41bc0ebac6188926" and "736d58c7a305c6060bb6c5a7e784375266e31164" have entirely different histories.
7ad1e595a9
...
736d58c7a3
@ -307,29 +307,27 @@ internal static class WootingLedMappings
|
||||
|
||||
private static readonly Dictionary<LedId, (int row, int column)> ThreeKeyKeypad = new()
|
||||
{
|
||||
//left (from top to bottom)
|
||||
[LedId.LedStripe1] = (1, 0),
|
||||
[LedId.LedStripe2] = (2, 0),
|
||||
//top left - bottom left
|
||||
[LedId.LedStripe1] = (0, 0),
|
||||
[LedId.LedStripe2] = (1, 0),
|
||||
[LedId.LedStripe3] = (3, 0),
|
||||
|
||||
//bottom (from left to right)
|
||||
//bottom left - bottom right
|
||||
[LedId.LedStripe4] = (4, 1),
|
||||
[LedId.LedStripe5] = (4, 2),
|
||||
[LedId.LedStripe6] = (4, 4),
|
||||
[LedId.LedStripe7] = (4, 5),
|
||||
|
||||
//right (from bottom to top)
|
||||
//bottom right - top right
|
||||
[LedId.LedStripe8] = (3, 6),
|
||||
[LedId.LedStripe9] = (2, 6),
|
||||
[LedId.LedStripe10] = (1, 6),
|
||||
[LedId.LedStripe9] = (1, 6),
|
||||
[LedId.LedStripe10] = (0, 6),
|
||||
|
||||
//top (from right to left)
|
||||
[LedId.LedStripe11] = (0, 6),
|
||||
[LedId.LedStripe12] = (0, 4),
|
||||
[LedId.LedStripe13] = (0, 2),
|
||||
[LedId.LedStripe14] = (0, 0),
|
||||
//top right - top left
|
||||
[LedId.LedStripe11] = (0, 4),
|
||||
[LedId.LedStripe12] = (0, 2),
|
||||
|
||||
//analog keys
|
||||
//Analog Keys
|
||||
[LedId.Keypad1] = (3, 2),
|
||||
[LedId.Keypad2] = (3, 3),
|
||||
[LedId.Keypad3] = (3, 4),
|
||||
|
||||
@ -101,10 +101,6 @@ public sealed class WootingDeviceProvider : AbstractRGBDeviceProvider
|
||||
WootingUpdateQueue updateQueue = new(GetUpdateTrigger(), i);
|
||||
_WootingSDK.SelectDevice(i);
|
||||
_WootingDeviceInfo nativeDeviceInfo = (_WootingDeviceInfo)Marshal.PtrToStructure(_WootingSDK.GetDeviceInfo(), typeof(_WootingDeviceInfo))!;
|
||||
|
||||
//Uwu non-rgb returns zero here.
|
||||
if (nativeDeviceInfo.MaxLedIndex == 0)
|
||||
continue;
|
||||
|
||||
yield return nativeDeviceInfo.DeviceType switch
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user