mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 21:16:24 +00:00
Updated Initializing CUE.NET (markdown)
1 parent
987d0b089b
commit
f8708c7d38
1 file changed
+11
-1
+11
-1
@@ -3,7 +3,7 @@ This can be done anytime (preferable at the application start) by calling
|
|||||||
```C#
|
```C#
|
||||||
CueSDK.Initialize();
|
CueSDK.Initialize();
|
||||||
```
|
```
|
||||||
After this you are free to work with the _KeyboardSDK_, _MouseSDK_ or _HeadsetSDK_ provided by the static _CueSDK_ class whenever you like.
|
After this you are free to work with the _KeyboardSDK_, _MouseSDK_, _HeadsetSDK_ or __MousematSDK__ provided by the static _CueSDK_ class whenever you like.
|
||||||
|
|
||||||
Since there could always be a problem while initializing CUE.NET you should catch the **_WrapperException_** and **_CUEException_** and check if the SDK you want to use is initialized.
|
Since there could always be a problem while initializing CUE.NET you should catch the **_WrapperException_** and **_CUEException_** and check if the SDK you want to use is initialized.
|
||||||
|
|
||||||
@@ -27,3 +27,13 @@ catch (WrapperException ex)
|
|||||||
Debug.WriteLine("Wrapper Exception! Message:" + ex.Message);
|
Debug.WriteLine("Wrapper Exception! Message:" + ex.Message);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Exclusive Access ####
|
||||||
|
You can take exclusive access over the SDK by passing **true** to the _Initialize_-method. This will make the lighting you make superior over all other programs using the SDK (including CUE itself).
|
||||||
|
|
||||||
|
#### Reinitializing ####
|
||||||
|
If you ever want to remove the lighting you added through the SDK and hand the control over the device back to CUE, you can this by calling
|
||||||
|
```C#
|
||||||
|
CueSDK.Reinitialize();
|
||||||
|
```
|
||||||
|
this offers the same overload taking a bool-parameter to capture exclusive access as _Initialize_.
|
||||||
Reference in new issue
Block a user