Skip to content
Fiercest edited this page Apr 20, 2020 · 3 revisions

Welcome to the Corsair Cue SDK Java wrapper wiki.

For More

See the pages on the right sidebar.

Quick Start Example

package ca.fiercest.test;

import ca.fiercest.cuesdk.CueSDK;
import ca.fiercest.cuesdk.enums.LedId;
import ca.fiercest.cuesdk.Color;

import java.util.Map;
import java.util.HashMap;

public class CueSDKExample 
{
    public static void main(String... args) throws Exception 
    {
        //Connect to the Corsair Cue SDK with the CueSDK object.
        final CueSDK sdk = new CueSDK(true);

        // Set LED of the Enter key to red
        sdk.SetLedColor(LedId.CLK_Enter, new Color(255, 0, 0));
        // Set LED of the left Shift key to green
        sdk.SetLedColor(LedId.CLK_Enter, new Color(0, 255, 0));

        // Set color of multiple keys at the same time
        Map<LedId, Color> map = new HashMap<>();
        map.put(LedId.CLK_W, new Color(255, 0, 0));
        map.put(LedId.CLK_A, new Color(0, 0, 255));
        map.put(LedId.CLK_S, new Color(0, 255, 0));
        map.put(LedId.CLK_D, new Color(255, 0, 0));
        sdk.SetLedColors(map);

        // Wait some time before exiting, so we can see the LEDs.
        Thread.sleep(1000);
    }
}
Clone this wiki locally