CorsairOfficial / cue-sdk-node

A Node.js native wrapper around iCUE SDK
MIT License
33 stars 3 forks source link

Latest iCue update breaks this integration #21

Closed spdermn02 closed 2 years ago

spdermn02 commented 2 years ago

iCue Software: v4.24.193

cue-sdk-node: v3.1.0

As of the latest iCue software update, the SubscribeToEvents is no longer triggering for macrokeyup/macrokeydown from my K55 RGB keyboard. This issue affects a plugin I've built for Touch Portal, but also seems to affect the Stream Deck app as well being able to utilize the Macro keys from the keyboard.

Events trigger for device disconnected/device connected, but nothing else.

spdermn02 commented 2 years ago

updated to v4.25.155 of iCue and G keys still do not work in either the sdk nor through Streamdeck software.

intrueder commented 2 years ago

Hi @spdermn02, can you share a list of devices displayed on the iCUE home tab? Specifically, I'm interested in a number of keyboards connected to your PC.

Linking a similar issue: https://github.com/CorsairOfficial/cue-sdk-python/issues/15

spdermn02 commented 2 years ago

I only have one keyboard the K55 RGB. It seems like it's an iCue software issue vs the SDK interface (I presume) since that is what updated in this scenario that caused it to break.

Running the code while developing connects but returns 0 keyboards connected even though I know for SURE it's connected as iCue reports it and the RGB changes to my configured profile. Firmware on keyboard is up to date according to iCue. Updated to the latest version of iCue and of course still an issue. And also using the Elgato Stream Deck integration to assign G keys, doesn't do anything when I push them either.

spdermn02 commented 2 years ago

I get this

{
  type: 2,
  model: 'K55 RGB', 
  physicalLayout: 1,
  logicalLayout: 2, 
  capsMask: 1,      
  ledsCount: 3,     
  channels: [],
  deviceId: '0376553b1b68048bbb81b3507b0339b0'
}

and when i'm subsribed to events

let subscribed = sdk.CorsairSubscribeForEvents( (event) => { 
  console.log(event);
});

the only events i receive are if i unplugin and replugin my keyboard

{
  id: 'devicedisconnect',
  deviceId: '0376553b1b68048bbb81b3507b0339b0'
}
{ id: 'deviceconnect', deviceId: '0376553b1b68048bbb81b3507b0339b0' }

So either the SDK isn't working to receive the macrokeydown/macrokeyup events or iCue itself broke the macro key event integration.

spdermn02 commented 2 years ago

went back and installed the "legacy" version of iCue and the macrokeys are back. Maybe my keyboard is no longer being supported properly in the new versions of icue. I'll test and update later but for now I get my G key access back.