mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Fixed previous changes to the corsair-mice-deviceprovider
This commit is contained in:
parent
f871f9ffde
commit
7ed9114805
@ -31,7 +31,7 @@ namespace Artemis.DeviceProviders.Corsair
|
||||
|
||||
public override void Disable()
|
||||
{
|
||||
if (CueSDK.ProtocolDetails != null)
|
||||
if (CueSDK.IsInitialized)
|
||||
CueSDK.Reinitialize();
|
||||
}
|
||||
|
||||
@ -60,14 +60,14 @@ namespace Artemis.DeviceProviders.Corsair
|
||||
ledIndex++;
|
||||
}
|
||||
|
||||
CueSDK.MouseSDK.Update(true);
|
||||
CueSDK.MouseSDK.Update();
|
||||
}
|
||||
|
||||
private static bool CanInitializeSdk()
|
||||
{
|
||||
for (var tries = 0; tries < 9; tries++)
|
||||
{
|
||||
if (CueSDK.IsSDKAvailable(CorsairDeviceType.Keyboard))
|
||||
if (CueSDK.IsSDKAvailable(CorsairDeviceType.Mouse))
|
||||
return true;
|
||||
Thread.Sleep(2000);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user