Added basic CoolerMaster support

This commit is contained in:
DarthAffe committed 2017-04-02 11:41:32 +02:00
1 parent 8446b9a47b
commit 8cc4688932
23 files changed
+1220 -2

No files matched your search

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
namespace RGB.NET.Devices.CoolerMaster
{
/// <summary>
/// Contains all the hardware-id mappings for CoolerMaster devices.
/// </summary>
internal static class CoolerMasterMouseLedMappings
{
#region Properties & Fields
/// <summary>
/// Contains all the hardware-id mappings for CoolerMaster devices.
/// </summary>
// ReSharper disable once InconsistentNaming
public static readonly Dictionary<CoolerMasterDevicesIndexes, Dictionary<CoolerMasterLedIds, Tuple<int, int>>> Mapping =
new Dictionary<CoolerMasterDevicesIndexes, Dictionary<CoolerMasterLedIds, Tuple<int, int>>>
{
{ CoolerMasterDevicesIndexes.MasterMouse_L, new Dictionary<CoolerMasterLedIds, Tuple<int, int>>
{
{ CoolerMasterLedIds.Side1, new Tuple<int, int>(0,0) },
{ CoolerMasterLedIds.Side2, new Tuple<int, int>(1,0) },
{ CoolerMasterLedIds.Side3, new Tuple<int, int>(2,0) },
{ CoolerMasterLedIds.Back1, new Tuple<int, int>(3,0) },
}
},
{ CoolerMasterDevicesIndexes.MasterMouse_S, new Dictionary<CoolerMasterLedIds, Tuple<int, int>>
{
{ CoolerMasterLedIds.Back1, new Tuple<int, int>(0,0) },
{ CoolerMasterLedIds.Wheel, new Tuple<int, int>(1,0) },
{ CoolerMasterLedIds.Side3, new Tuple<int, int>(2,0) },
{ CoolerMasterLedIds.Back1, new Tuple<int, int>(3,0) },
}
},
};
#endregion
}
}