expired6978/CUEORGBPlugin

Multiple device lightning is not working as expected

Opened this issue · 2 comments

image
This is my settings.json.

For example when I select this:
image

Mobo, gpu, mousemat, mouse everything becomes yellow. It is acting like lightning but it is just static color. And lightning layers carry over those devices:
image

I can give different colors on OpenRGB.

The problem is that:

enum class DeviceType : std::uint32_t

On this line DeviceType's are wrong.

https://github.com/CorsairOfficial/cue-sdk-node/blob/2c4d5387634b2af470f60d2af204235d58b4f9bd/src/enums.js#L1

This should be the enum here. And when you check here,

deviceInfo->deviceType = cue::dev::plugin::DeviceType::Keyboard; // We are using keyboard because it treats the polys as buttons and doesn't litter the screen with key buttons

This is actually not keyboard but Mouse. Since 1 corresponds to Mouse in the correct enum.

The issue is that when you set every device as Keyboard, on multiple devices it acts as a single one.

I tried using different deviceTypes. I can use these without a problem,
CDT_Mouse
CDT_MouseMat
CDT_Headset

But the other ones, I can not set any lights for example CDT_GraphicsCard, it won't work in the icue. Maybe these needs different creating method?

Example to use 3 devices corrrectly:
image