Skip to content

Commit 2ca63d5

Browse files
committed
wooting grpc device provider
1 parent 9c39cc3 commit 2ca63d5

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/Devices/Artemis.Plugins.Devices.Wooting/Artemis.Plugins.Devices.Wooting.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="RGB.NET.Devices.Wooting" Version="3.0.0" />
1110
<PackageReference Include="WootingAnalogSDK.NET" Version="0.5.0" />
1211
<PackageReference Include="McMaster.NETCore.Plugins" />
1312
<PackageReference Include="Serilog" />
@@ -33,4 +32,12 @@
3332
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3433
</PackageReference>
3534
</ItemGroup>
35+
36+
<ItemGroup>
37+
<PackageReference Include="Google.Protobuf" Version="3.31.1" />
38+
<PackageReference Include="Grpc.Net.Client" Version="2.71.0" />
39+
<Reference Include="RGB.NET.Devices.Wooting">
40+
<HintPath>..\..\..\..\RGB.NET\bin\net9.0\RGB.NET.Devices.Wooting.dll</HintPath>
41+
</Reference>
42+
</ItemGroup>
3643
</Project>

src/Devices/Artemis.Plugins.Devices.Wooting/WootingDeviceProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Artemis.Core.Services;
44
using RGB.NET.Core;
55
using Serilog;
6-
using RGBDeviceProvider = RGB.NET.Devices.Wooting.WootingDeviceProvider;
6+
using RGBDeviceProvider = RGB.NET.Devices.Wooting.WootingGrpcDeviceProvider;
77

88
namespace Artemis.Plugins.Devices.Wooting
99
{
@@ -24,9 +24,9 @@ public WootingDeviceProvider(ILogger logger, IDeviceService deviceService)
2424

2525
public override void Enable()
2626
{
27-
RGBDeviceProvider.PossibleX64NativePathsWindows.Add(Path.Combine(Plugin.Directory.FullName, "x64", "wooting-rgb-sdk64.dll"));
28-
RGBDeviceProvider.PossibleX86NativePathsWindows.Add(Path.Combine(Plugin.Directory.FullName, "x86", "wooting-rgb-sdk.dll"));
29-
RGBDeviceProvider.PossibleNativePathsLinux.Add(Path.Combine(Plugin.Directory.FullName, "x64", "libwooting-rgb-sdk.so"));
27+
// RGBDeviceProvider.PossibleX64NativePathsWindows.Add(Path.Combine(Plugin.Directory.FullName, "x64", "wooting-rgb-sdk64.dll"));
28+
// RGBDeviceProvider.PossibleX86NativePathsWindows.Add(Path.Combine(Plugin.Directory.FullName, "x86", "wooting-rgb-sdk.dll"));
29+
// RGBDeviceProvider.PossibleNativePathsLinux.Add(Path.Combine(Plugin.Directory.FullName, "x64", "libwooting-rgb-sdk.so"));
3030

3131
RgbDeviceProvider.Exception += Provider_OnException;
3232
_deviceService.AddDeviceProvider(this);

0 commit comments

Comments
 (0)