Skip to content

Commit 2c224f2

Browse files
committed
feat: add support for kraken elite 2023
1 parent ca8f1d5 commit 2c224f2

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

FanControl.NzxtKraken.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
</Reference>
4040
<Reference Include="HidSharp">
4141
<HintPath>..\..\Documents\FanControl\HidSharp.dll</HintPath>
42+
<Private>False</Private>
4243
</Reference>
4344
<Reference Include="System" />
4445
<Reference Include="System.ComponentModel.Composition" />

NzxtKrakenPlugin.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public void Load(IPluginSensorsContainer _container)
3636
{
3737
devices.Add(new NzxtKrakenX2(hidDevice, logger, _container));
3838
}
39-
39+
else if (NzxtKrakenElite.SupportsDevice(hidDevice))
40+
{
41+
devices.Add(new NzxtKrakenElite(hidDevice, logger, _container));
42+
}
4043
}
4144
}
4245

NzxtKrakenV3.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,17 @@ internal override void SetValues(byte[] packet)
105105
return Array.Exists(new int[] { 0x3008 }, i => i == hidDevice.ProductID);
106106
}
107107
}
108+
109+
internal class NzxtKrakenElite : NzxtKrakenZ3
110+
{
111+
internal override string Name => "Kraken Elite";
112+
113+
public NzxtKrakenElite(HidDevice hidDevice, IPluginLogger pluginLogger, IPluginSensorsContainer container) : base(hidDevice, pluginLogger, container)
114+
{}
115+
116+
public static new bool SupportsDevice(HidDevice hidDevice)
117+
{
118+
return Array.Exists(new int[] { 0x300C }, i => i == hidDevice.ProductID);
119+
}
120+
}
108121
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The project, after being imported to Visual Studio needs to have it reference to
1010

1111
## Supported devices
1212

13+
- NZXT Kraken Elite 2023
1314
- NZXT Kraken X3 (X73, X63, X53)
1415
- NZXT Kraken Z3 (Z73, Z63, Z53)
1516
- NZXT Kraken X2 (X72, X62, X52, X42)

0 commit comments

Comments
 (0)