mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 13:06:24 +00:00
Updated Initializing CUE.NET (markdown)
1 parent
3bd9e13943
commit
1218423bf1
1 file changed
+11
-1
+11
-1
@@ -36,4 +36,14 @@ If you ever want to remove the lighting you added through the SDK and hand the c
|
|||||||
```C#
|
```C#
|
||||||
CueSDK.Reinitialize();
|
CueSDK.Reinitialize();
|
||||||
```
|
```
|
||||||
this offers the same overload taking a bool-parameter to capture exclusive access as _Initialize_.
|
this offers the same overload taking a bool-parameter to capture exclusive access as _Initialize_.
|
||||||
|
|
||||||
|
#### Checking SDK availability. ####
|
||||||
|
If you want to know if the CUE-SDK available and at least one light-controllable device is connected you can achieve this by calling
|
||||||
|
```C#
|
||||||
|
bool hasSomethingContollable = CueSDK.IsSDKAvailable();
|
||||||
|
```
|
||||||
|
Alternative you can specify a device-type to check for:
|
||||||
|
```C#
|
||||||
|
bool hasControllableKeyboard = CueSDK.IsSDKAvailable(CorsairDeviceType.Keyboard);
|
||||||
|
```
|
||||||
Reference in new issue
Block a user