Added support for ten-zone-devices to steelseries provider

This commit is contained in:
DarthAffe committed 2022-12-14 23:56:15 +01:00
1 parent 8555d6b961
commit dccd44cef8
3 files changed
+21

No files matched your search

@@ -41,6 +41,7 @@ internal static class SteelSeriesSDK
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-6-zone"")
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-7-zone"")
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-8-zone"")
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-10-zone"")
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-12-zone"")
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-17-zone"")
(add-event-zone-use-with-specifier ""{EVENT_NAME}"" ""all"" ""rgb-24-zone"")
@@ -32,6 +32,9 @@ public enum SteelSeriesDeviceType
[APIName("rgb-8-zone")]
EightZone,
[APIName("rgb-10-zone")]
TenZone,
[APIName("rgb-12-zone")]
TwelveZone,
@@ -357,6 +357,23 @@ public static class LedMappings
{ LedId.Mouse8, SteelSeriesLedId.ZoneEight }
};
/// <summary>
/// Gets the mapping for ten-zone mice.
/// </summary>
public static LedMapping<SteelSeriesLedId> MouseTenZone { get; } = new()
{
{ LedId.Mouse1, SteelSeriesLedId.ZoneOne },
{ LedId.Mouse2, SteelSeriesLedId.ZoneTwo },
{ LedId.Mouse3, SteelSeriesLedId.ZoneThree },
{ LedId.Mouse4, SteelSeriesLedId.ZoneFour },
{ LedId.Mouse5, SteelSeriesLedId.ZoneFive },
{ LedId.Mouse6, SteelSeriesLedId.ZoneSix },
{ LedId.Mouse7, SteelSeriesLedId.ZoneSeven },
{ LedId.Mouse8, SteelSeriesLedId.ZoneEight },
{ LedId.Mouse9, SteelSeriesLedId.ZoneNine },
{ LedId.Mouse10, SteelSeriesLedId.ZoneTen }
};
/// <summary>
/// Gets the mapping for two-zone headsets.
/// </summary>