Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Releases: DarthAffe/CUE.NET

First somehow usable version

20 Sep 20:31
Compare
Choose a tag to compare

_This release is really outdated. Please consider to use the current NuGet-Package at https://www.myget.org/gallery/cue_net until Version 1.0 is released._

Nothing too fancy so far, but it works and allows to control all keyboard leds.

(Mouse and headset aren't supported until now since I don't own one. If you can help me by testing with one of these devices feel free to drop me a message)

Simple example of use:

// Initialize CUE-SDK
CueSDK.Initialize();

// Get connected keyboard or throw exception if there is no light controllable keyboard connected
 CorsairKeyboard keyboard = CueSDK.KeyboardSDK;
if (keyboard == null)
    throw new WrapperException("No keyboard found");

// Set "background" color to black (remove this line if you only want to control single keys)
keyboard.Color = Color.Black;

 // Ink all numbers on the keypad except the '5' purple, we want that to be gray
SimpleKeyGroup purpleGroup = new RectangleKeyGroup(keyboard, CorsairKeyboardKeyId.Keypad7, CorsairKeyboardKeyId.Keypad3)
{ Color = Color.Purple }
.Exclude(CorsairKeyboardKeyId.Keypad5);
keyboard[CorsairKeyboardKeyId.Keypad5].Led.Color = Color.Gray;

// Ink the Keys 'r', 'g', 'b' in their respective color
// The char access seems to fail for everything except letters (SDK doesn't return a valid keyId)
keyboard['R'].Led.Color = Color.Red;
keyboard[CorsairKeyboardKeyId.G].Led.Color = Color.Green;
keyboard['B'].Led.Color = Color.Blue;

 // Update the keyboard to show the configured colors
keyboard.UpdateLeds();

Check out the example project to see this (and a few more things) in practice.