jonathanpotts / Spectral

Add RGB LED illumination to your games and applications made with Unity, Unreal Engine, C++, and .NET. Spectral adds RGB LED illumination on devices on all supported brands (e.g. Logitech, Corsair) instead of only the devices of a specific brand.
MIT License
14 stars 5 forks source link

[Feature] Get Color by key #7

Closed KleinDevDE closed 4 years ago

KleinDevDE commented 4 years ago

Hello,

Devices:

I'm currently working on a small software which will make a certain key on my keyboard blink when I receive a notification.

But now it would be great if I can get the currently displayed color with Spectral to use it when flashing.

Example: I have the color blue on the ESC key An important message comes in My software starts flashing my ESC Red -> White -> Red -> White -> Red -> White etc.

But it would be nicer if I could save the previous color (blue in this case), then it would look like this: Red -> Blue -> Red -> Blue -> Red -> Blue

Besides: Only when the software is finished, I will give you previous color.

It would be really great if there was any possibility :)

jonathanpotts commented 4 years ago

There isn't an official way to get what color a key currently is. However, you can use the Logitech SDK to play effects on keys which might accomplish something similar to what you want: https://www.logitechg.com/sdk/LED_SDK_9.00.zip