mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added the views and VM's I'm planning to use
This commit is contained in:
1 parent
1b40b7f52d
commit
36f3ec3071
26 files changed
+372
-43
No files matched your search
@@ -0,0 +1,50 @@
|
||||
Ok so with the following code:
|
||||
|
||||
```cpp
|
||||
bool errorCheck(const std::string &msg) {
|
||||
auto error = CorsairGetLastError();
|
||||
if (error != CorsairError::CE_Success) {
|
||||
std::cerr << msg << " (Error: " << toString(error) << ')' << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
CorsairPerformProtocolHandshake();
|
||||
if (errorCheck("Handshake error")) {
|
||||
getchar();
|
||||
return -1;
|
||||
}
|
||||
|
||||
const auto devicesCount = CorsairGetDeviceCount();
|
||||
for (int i = 0; i < devicesCount; ++i) {
|
||||
const auto info = CorsairGetDeviceInfo(i);
|
||||
if (!info) {
|
||||
errorCheck("Get device info error");
|
||||
continue;
|
||||
}
|
||||
|
||||
std::cout << "Model: " << info->model << "Logical layout: " << info->logicalLayout << std::endl;
|
||||
}
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
I'm getting this output, which is as expected:
|
||||
```
|
||||
Model: K95 RGB PLATINUMLogical layout: 13
|
||||
```
|
||||
|
||||
Then when I put the PC to full stand-by and wake it up again the code returns the following:
|
||||
```
|
||||
Model: K95 RGB PLATINUMLogical layout: 0
|
||||
```
|
||||
|
||||
Windows 10 Home 1903
|
||||
iCUE v. 3.22.74
|
||||
SDK: 3.0.301
|
||||
Reference in new issue
Block a user