CorsairOfficial/cue-sdk

How do you get all KeyNames for a device

mandray opened this issue · 4 comments

I know you can convert a KeyName into a ID, but is there a way to get all KeyNames for each device

Short answer: no, CUESDK does not provide this functionality.

But can you share your use-case to let me understand the problem better?
Because if you know that some device is CDT_Keyboard and has more than 26 keys, key names will be ['A', ..., 'Z']

Our use case would be having a way to display the keys that can change colors allowing the user to select the ones they want in a user friendly way. The use case would be differentiating between a keyboard with a num pad vs one without and whether a mouse only has one changeable led vs 3 for instance.

Have you considered using the CorsairGetLedPositionsByDeviceIndex function?
CorsairLedPosition structure has the information you need - ledId

Closing the issue, please feel free to reopen, if you will still have questions.