The Corsair User Forums

The Corsair User Forums (https://forum.corsair.com/forums/index.php)
-   CUE 1.x and 2.x SDK (https://forum.corsair.com/forums/forumdisplay.php?f=271)
-   -   CorsairSetLedsColorsAsync returns true even when keyboard is disconnected (https://forum.corsair.com/forums/showthread.php?t=170932)

ygolohcisp 09-04-2017 10:39 AM

CorsairSetLedsColorsAsync returns true even when keyboard is disconnected
 
I'm trying to detect when my K95 is disconnected so I can automatically retry connecting it when it comes back.
The only function I'm using in my loop is `CorsairSetLedsColorsAsync` and I thought that it would return `false` when the keyboard is disconnected, but it always returns true, and even when I check `CorsairGetLastError()` after it (or ANYWHERE in my loop where no other CUE function is called) it returns `CE_Success`.

So how can I detect if the keyboard is disconnected?

(Btw, the non-async version of that function DOES return false when the keyboard is disconnected, but I want to use the Async variant.)


All times are GMT -4. The time now is 01:18 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.