From 3890cea249dbb3b6f6d56027b62f95fb7c764153 Mon Sep 17 00:00:00 2001 From: hyphz Date: Mon, 17 Apr 2017 00:24:21 +0100 Subject: [PATCH] Updated to latest CUE SDK, added enums for extra files. JNAerator was generating files that wouldn't compile, so nixed it. --- pom.xml | 27 +- .../java/dk/allanmc/cuesdk/enums/LedId.java | 38 +- .../allanmc/cuesdk/jna/CorsairDeviceInfo.java | 80 +++ .../allanmc/cuesdk/jna/CorsairLedColor.java | 56 ++ .../cuesdk/jna/CorsairLedPosition.java | 54 ++ .../cuesdk/jna/CorsairLedPositions.java | 46 ++ .../cuesdk/jna/CorsairProtocolDetails.java | 62 ++ .../dk/allanmc/cuesdk/jna/CueSDKLibrary.java | 631 ++++++++++++++++++ src/main/jnaerator/config.jnaerator | 2 +- 9 files changed, 975 insertions(+), 21 deletions(-) create mode 100644 src/main/java/dk/allanmc/cuesdk/jna/CorsairDeviceInfo.java create mode 100644 src/main/java/dk/allanmc/cuesdk/jna/CorsairLedColor.java create mode 100644 src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPosition.java create mode 100644 src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPositions.java create mode 100644 src/main/java/dk/allanmc/cuesdk/jna/CorsairProtocolDetails.java create mode 100644 src/main/java/dk/allanmc/cuesdk/jna/CueSDKLibrary.java diff --git a/pom.xml b/pom.xml index cabbc3f..969b4e7 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ net.java.dev.jna jna - 4.2.1 + 4.4.0 @@ -33,7 +33,7 @@ com.googlecode.maven-download-plugin download-maven-plugin - 1.2.1 + 1.3.0 generate-sources @@ -42,11 +42,11 @@ - http://softwaredownloads.corsair.com/Files/Gaming-Keyboards/Corsair-SDK-Release-v1.15.28.zip + http://softwaredownloads.corsair.com/Files/CUE/CUESDK_2.10.91.zip cuesdk.zip ${project.build.directory} - e22a7036e56b54d42fdd5e8b9285c3a9 + 7fa9e8eac758916f1fb8209479f365ca @@ -61,9 +61,9 @@ - - @@ -73,19 +73,7 @@ - - com.nativelibs4java - maven-jnaerator-plugin - 0.12 - - - generate-sources - - generate - - - - + org.apache.maven.plugins maven-javadoc-plugin @@ -103,6 +91,7 @@ + diff --git a/src/main/java/dk/allanmc/cuesdk/enums/LedId.java b/src/main/java/dk/allanmc/cuesdk/enums/LedId.java index 9265109..69ad926 100644 --- a/src/main/java/dk/allanmc/cuesdk/enums/LedId.java +++ b/src/main/java/dk/allanmc/cuesdk/enums/LedId.java @@ -155,7 +155,43 @@ public enum LedId { CLM_4, CLH_LeftLogo, CLH_RightLogo, - CLK_Logo; + CLK_Logo, + CLMM_Zone1, + CLMM_Zone2, + CLMM_Zone3, + CLMM_Zone4, + CLMM_Zone5, + CLMM_Zone6, + CLMM_Zone7, + CLMM_Zone8, + CLMM_Zone9, + CLMM_Zone10, + CLMM_Zone11, + CLMM_Zone12, + CLMM_Zone13, + CLMM_Zone14, + CLMM_Zone15, + CLKLP_Zone1, + CLKLP_Zone2, + CLKLP_Zone3, + CLKLP_Zone4, + CLKLP_Zone5, + CLKLP_Zone6, + CLKLP_Zone7, + CLKLP_Zone8, + CLKLP_Zone9, + CLKLP_Zone10, + CLKLP_Zone11, + CLKLP_Zone12, + CLKLP_Zone13, + CLKLP_Zone14, + CLKLP_Zone15, + CLKLP_Zone16, + CLKLP_Zone17, + CLKLP_Zone18, + CLKLP_Zone19, + CLM_5, + CLM_6; private static LedId[] values = LedId.values(); diff --git a/src/main/java/dk/allanmc/cuesdk/jna/CorsairDeviceInfo.java b/src/main/java/dk/allanmc/cuesdk/jna/CorsairDeviceInfo.java new file mode 100644 index 0000000..38ab152 --- /dev/null +++ b/src/main/java/dk/allanmc/cuesdk/jna/CorsairDeviceInfo.java @@ -0,0 +1,80 @@ +package dk.allanmc.cuesdk.jna; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * contains information about device
+ * native declaration : target\CUESDK\include\CUESDK.h:72
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class CorsairDeviceInfo extends Structure { + /** + * @see CorsairDeviceType
+ * enum describing device type
+ * C type : CorsairDeviceType + */ + public int type; + /** + * null - terminated device model(like \u201cK95RGB\u201d)
+ * C type : const char* + */ + public Pointer model; + /** + * @see CorsairPhysicalLayout
+ * enum describing physical layout of the keyboard or mouse
+ * C type : CorsairPhysicalLayout + */ + public int physicalLayout; + /** + * @see CorsairLogicalLayout
+ * enum describing logical layout of the keyboard as set in CUE settings
+ * C type : CorsairLogicalLayout + */ + public int logicalLayout; + /** mask that describes device capabilities, formed as logical \u201cor\u201d of CorsairDeviceCaps enum values */ + public int capsMask; + /** number of controllable LEDs on the device */ + public int ledsCount; + public CorsairDeviceInfo() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("type", "model", "physicalLayout", "logicalLayout", "capsMask", "ledsCount"); + } + /** + * @param type @see CorsairDeviceType
+ * enum describing device type
+ * C type : CorsairDeviceType
+ * @param model null - terminated device model(like \u201cK95RGB\u201d)
+ * C type : const char*
+ * @param physicalLayout @see CorsairPhysicalLayout
+ * enum describing physical layout of the keyboard or mouse
+ * C type : CorsairPhysicalLayout
+ * @param logicalLayout @see CorsairLogicalLayout
+ * enum describing logical layout of the keyboard as set in CUE settings
+ * C type : CorsairLogicalLayout
+ * @param capsMask mask that describes device capabilities, formed as logical \u201cor\u201d of CorsairDeviceCaps enum values
+ * @param ledsCount number of controllable LEDs on the device + */ + public CorsairDeviceInfo(int type, Pointer model, int physicalLayout, int logicalLayout, int capsMask, int ledsCount) { + super(); + this.type = type; + this.model = model; + this.physicalLayout = physicalLayout; + this.logicalLayout = logicalLayout; + this.capsMask = capsMask; + this.ledsCount = ledsCount; + } + public CorsairDeviceInfo(Pointer peer) { + super(peer); + } + public static class ByReference extends CorsairDeviceInfo implements Structure.ByReference { + + }; + public static class ByValue extends CorsairDeviceInfo implements Structure.ByValue { + + }; +} diff --git a/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedColor.java b/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedColor.java new file mode 100644 index 0000000..5dfcb88 --- /dev/null +++ b/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedColor.java @@ -0,0 +1,56 @@ +package dk.allanmc.cuesdk.jna; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * contains information about led and its color
+ * native declaration : target\CUESDK\include\CUESDK.h:97
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class CorsairLedColor extends Structure { + /** + * @see CorsairLedId
+ * identifier of LED to set
+ * C type : CorsairLedId + */ + public int ledId; + /** red brightness[0..255] */ + public int r; + /** green brightness[0..255] */ + public int g; + /** blue brightness[0..255] */ + public int b; + public CorsairLedColor() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("ledId", "r", "g", "b"); + } + /** + * @param ledId @see CorsairLedId
+ * identifier of LED to set
+ * C type : CorsairLedId
+ * @param r red brightness[0..255]
+ * @param g green brightness[0..255]
+ * @param b blue brightness[0..255] + */ + public CorsairLedColor(int ledId, int r, int g, int b) { + super(); + this.ledId = ledId; + this.r = r; + this.g = g; + this.b = b; + } + public CorsairLedColor(Pointer peer) { + super(peer); + } + public static class ByReference extends CorsairLedColor implements Structure.ByReference { + + }; + public static class ByValue extends CorsairLedColor implements Structure.ByValue { + + }; +} diff --git a/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPosition.java b/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPosition.java new file mode 100644 index 0000000..1099fe4 --- /dev/null +++ b/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPosition.java @@ -0,0 +1,54 @@ +package dk.allanmc.cuesdk.jna; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * contains led id and position of led rectangle.Most of the keys are rectangular.In case if key is not rectangular(like Enter in ISO / UK layout) it returns the smallest rectangle that fully contains the key
+ * native declaration : target\CUESDK\include\CUESDK.h:82
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class CorsairLedPosition extends Structure { + /** + * @see CorsairLedId
+ * identifier of led
+ * C type : CorsairLedId + */ + public int ledId; + public double top; + public double left; + public double height; + /** values in mm */ + public double width; + public CorsairLedPosition() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("ledId", "top", "left", "height", "width"); + } + /** + * @param ledId @see CorsairLedId
+ * identifier of led
+ * C type : CorsairLedId
+ * @param width values in mm + */ + public CorsairLedPosition(int ledId, double top, double left, double height, double width) { + super(); + this.ledId = ledId; + this.top = top; + this.left = left; + this.height = height; + this.width = width; + } + public CorsairLedPosition(Pointer peer) { + super(peer); + } + public static class ByReference extends CorsairLedPosition implements Structure.ByReference { + + }; + public static class ByValue extends CorsairLedPosition implements Structure.ByValue { + + }; +} diff --git a/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPositions.java b/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPositions.java new file mode 100644 index 0000000..cc85e78 --- /dev/null +++ b/src/main/java/dk/allanmc/cuesdk/jna/CorsairLedPositions.java @@ -0,0 +1,46 @@ +package dk.allanmc.cuesdk.jna; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * contains number of leds and arrays with their positions
+ * native declaration : target\CUESDK\include\CUESDK.h:91
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class CorsairLedPositions extends Structure { + /** integer value.Number of elements in following array */ + public int numberOfLed; + /** + * array of led positions
+ * C type : CorsairLedPosition* + */ + public dk.allanmc.cuesdk.jna.CorsairLedPosition.ByReference pLedPosition; + public CorsairLedPositions() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("numberOfLed", "pLedPosition"); + } + /** + * @param numberOfLed integer value.Number of elements in following array
+ * @param pLedPosition array of led positions
+ * C type : CorsairLedPosition* + */ + public CorsairLedPositions(int numberOfLed, dk.allanmc.cuesdk.jna.CorsairLedPosition.ByReference pLedPosition) { + super(); + this.numberOfLed = numberOfLed; + this.pLedPosition = pLedPosition; + } + public CorsairLedPositions(Pointer peer) { + super(peer); + } + public static class ByReference extends CorsairLedPositions implements Structure.ByReference { + + }; + public static class ByValue extends CorsairLedPositions implements Structure.ByValue { + + }; +} diff --git a/src/main/java/dk/allanmc/cuesdk/jna/CorsairProtocolDetails.java b/src/main/java/dk/allanmc/cuesdk/jna/CorsairProtocolDetails.java new file mode 100644 index 0000000..968307b --- /dev/null +++ b/src/main/java/dk/allanmc/cuesdk/jna/CorsairProtocolDetails.java @@ -0,0 +1,62 @@ +package dk.allanmc.cuesdk.jna; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import java.util.Arrays; +import java.util.List; +/** + * contains information about SDK and CUE versions
+ * native declaration : target\CUESDK\include\CUESDK.h:105
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public class CorsairProtocolDetails extends Structure { + /** + * null - terminated string containing version of SDK(like \u201c1.0.0.1\u201d). Always contains valid value even if there was no CUE found
+ * C type : const char* + */ + public Pointer sdkVersion; + /** + * null - terminated string containing version of CUE(like \u201c1.0.0.1\u201d) or NULL if CUE was not found.
+ * C type : const char* + */ + public Pointer serverVersion; + /** integer number that specifies version of protocol that is implemented by current SDK. Numbering starts from 1. Always contains valid value even if there was no CUE found */ + public int sdkProtocolVersion; + /** integer number that specifies version of protocol that is implemented by CUE. Numbering starts from 1. If CUE was not found then this value will be 0 */ + public int serverProtocolVersion; + /** boolean value that specifies if there were breaking changes between version of protocol implemented by server and client */ + public byte breakingChanges; + public CorsairProtocolDetails() { + super(); + } + protected List getFieldOrder() { + return Arrays.asList("sdkVersion", "serverVersion", "sdkProtocolVersion", "serverProtocolVersion", "breakingChanges"); + } + /** + * @param sdkVersion null - terminated string containing version of SDK(like \u201c1.0.0.1\u201d). Always contains valid value even if there was no CUE found
+ * C type : const char*
+ * @param serverVersion null - terminated string containing version of CUE(like \u201c1.0.0.1\u201d) or NULL if CUE was not found.
+ * C type : const char*
+ * @param sdkProtocolVersion integer number that specifies version of protocol that is implemented by current SDK. Numbering starts from 1. Always contains valid value even if there was no CUE found
+ * @param serverProtocolVersion integer number that specifies version of protocol that is implemented by CUE. Numbering starts from 1. If CUE was not found then this value will be 0
+ * @param breakingChanges boolean value that specifies if there were breaking changes between version of protocol implemented by server and client + */ + public CorsairProtocolDetails(Pointer sdkVersion, Pointer serverVersion, int sdkProtocolVersion, int serverProtocolVersion, byte breakingChanges) { + super(); + this.sdkVersion = sdkVersion; + this.serverVersion = serverVersion; + this.sdkProtocolVersion = sdkProtocolVersion; + this.serverProtocolVersion = serverProtocolVersion; + this.breakingChanges = breakingChanges; + } + public CorsairProtocolDetails(Pointer peer) { + super(peer); + } + public static class ByReference extends CorsairProtocolDetails implements Structure.ByReference { + + }; + public static class ByValue extends CorsairProtocolDetails implements Structure.ByValue { + + }; +} diff --git a/src/main/java/dk/allanmc/cuesdk/jna/CueSDKLibrary.java b/src/main/java/dk/allanmc/cuesdk/jna/CueSDKLibrary.java new file mode 100644 index 0000000..878e26a --- /dev/null +++ b/src/main/java/dk/allanmc/cuesdk/jna/CueSDKLibrary.java @@ -0,0 +1,631 @@ +package dk.allanmc.cuesdk.jna; +import com.sun.jna.Callback; +import com.sun.jna.Library; +import com.sun.jna.Native; +import com.sun.jna.NativeLibrary; +import com.sun.jna.Pointer; +import dk.allanmc.cuesdk.jna.CorsairProtocolDetails.ByValue; +/** + * JNA Wrapper for library CueSDK
+ * This file was autogenerated by JNAerator,
+ * a tool written by Olivier Chafik that uses a few opensource projects..
+ * For help, please visit NativeLibs4Java , Rococoa, or JNA. + */ +public interface CueSDKLibrary extends Library { + public static final String JNA_LIBRARY_NAME = "CueSDK"; + public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(CueSDKLibrary.JNA_LIBRARY_NAME); + public static final CueSDKLibrary INSTANCE = (CueSDKLibrary)Native.loadLibrary(CueSDKLibrary.JNA_LIBRARY_NAME, CueSDKLibrary.class); + /** + * native declaration : target\CUESDK\include\CorsairLedIdEnum.h:3
+ * enum values + */ + public static interface CorsairLedId { + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:5 */ + public static final int CLI_Invalid = 0; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:6 */ + public static final int CLK_Escape = 1; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:7 */ + public static final int CLK_F1 = 2; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:8 */ + public static final int CLK_F2 = 3; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:9 */ + public static final int CLK_F3 = 4; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:10 */ + public static final int CLK_F4 = 5; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:11 */ + public static final int CLK_F5 = 6; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:12 */ + public static final int CLK_F6 = 7; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:13 */ + public static final int CLK_F7 = 8; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:14 */ + public static final int CLK_F8 = 9; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:15 */ + public static final int CLK_F9 = 10; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:16 */ + public static final int CLK_F10 = 11; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:17 */ + public static final int CLK_F11 = 12; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:18 */ + public static final int CLK_GraveAccentAndTilde = 13; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:19 */ + public static final int CLK_1 = 14; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:20 */ + public static final int CLK_2 = 15; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:21 */ + public static final int CLK_3 = 16; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:22 */ + public static final int CLK_4 = 17; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:23 */ + public static final int CLK_5 = 18; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:24 */ + public static final int CLK_6 = 19; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:25 */ + public static final int CLK_7 = 20; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:26 */ + public static final int CLK_8 = 21; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:27 */ + public static final int CLK_9 = 22; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:28 */ + public static final int CLK_0 = 23; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:29 */ + public static final int CLK_MinusAndUnderscore = 24; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:30 */ + public static final int CLK_Tab = 25; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:31 */ + public static final int CLK_Q = 26; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:32 */ + public static final int CLK_W = 27; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:33 */ + public static final int CLK_E = 28; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:34 */ + public static final int CLK_R = 29; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:35 */ + public static final int CLK_T = 30; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:36 */ + public static final int CLK_Y = 31; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:37 */ + public static final int CLK_U = 32; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:38 */ + public static final int CLK_I = 33; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:39 */ + public static final int CLK_O = 34; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:40 */ + public static final int CLK_P = 35; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:41 */ + public static final int CLK_BracketLeft = 36; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:42 */ + public static final int CLK_CapsLock = 37; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:43 */ + public static final int CLK_A = 38; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:44 */ + public static final int CLK_S = 39; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:45 */ + public static final int CLK_D = 40; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:46 */ + public static final int CLK_F = 41; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:47 */ + public static final int CLK_G = 42; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:48 */ + public static final int CLK_H = 43; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:49 */ + public static final int CLK_J = 44; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:50 */ + public static final int CLK_K = 45; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:51 */ + public static final int CLK_L = 46; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:52 */ + public static final int CLK_SemicolonAndColon = 47; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:53 */ + public static final int CLK_ApostropheAndDoubleQuote = 48; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:54 */ + public static final int CLK_LeftShift = 49; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:55 */ + public static final int CLK_NonUsBackslash = 50; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:56 */ + public static final int CLK_Z = 51; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:57 */ + public static final int CLK_X = 52; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:58 */ + public static final int CLK_C = 53; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:59 */ + public static final int CLK_V = 54; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:60 */ + public static final int CLK_B = 55; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:61 */ + public static final int CLK_N = 56; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:62 */ + public static final int CLK_M = 57; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:63 */ + public static final int CLK_CommaAndLessThan = 58; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:64 */ + public static final int CLK_PeriodAndBiggerThan = 59; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:65 */ + public static final int CLK_SlashAndQuestionMark = 60; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:66 */ + public static final int CLK_LeftCtrl = 61; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:67 */ + public static final int CLK_LeftGui = 62; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:68 */ + public static final int CLK_LeftAlt = 63; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:69 */ + public static final int CLK_Lang2 = 64; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:70 */ + public static final int CLK_Space = 65; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:71 */ + public static final int CLK_Lang1 = 66; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:72 */ + public static final int CLK_International2 = 67; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:73 */ + public static final int CLK_RightAlt = 68; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:74 */ + public static final int CLK_RightGui = 69; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:75 */ + public static final int CLK_Application = 70; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:76 */ + public static final int CLK_LedProgramming = 71; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:77 */ + public static final int CLK_Brightness = 72; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:78 */ + public static final int CLK_F12 = 73; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:79 */ + public static final int CLK_PrintScreen = 74; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:80 */ + public static final int CLK_ScrollLock = 75; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:81 */ + public static final int CLK_PauseBreak = 76; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:82 */ + public static final int CLK_Insert = 77; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:83 */ + public static final int CLK_Home = 78; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:84 */ + public static final int CLK_PageUp = 79; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:85 */ + public static final int CLK_BracketRight = 80; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:86 */ + public static final int CLK_Backslash = 81; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:87 */ + public static final int CLK_NonUsTilde = 82; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:88 */ + public static final int CLK_Enter = 83; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:89 */ + public static final int CLK_International1 = 84; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:90 */ + public static final int CLK_EqualsAndPlus = 85; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:91 */ + public static final int CLK_International3 = 86; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:92 */ + public static final int CLK_Backspace = 87; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:93 */ + public static final int CLK_Delete = 88; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:94 */ + public static final int CLK_End = 89; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:95 */ + public static final int CLK_PageDown = 90; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:96 */ + public static final int CLK_RightShift = 91; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:97 */ + public static final int CLK_RightCtrl = 92; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:98 */ + public static final int CLK_UpArrow = 93; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:99 */ + public static final int CLK_LeftArrow = 94; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:100 */ + public static final int CLK_DownArrow = 95; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:101 */ + public static final int CLK_RightArrow = 96; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:102 */ + public static final int CLK_WinLock = 97; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:103 */ + public static final int CLK_Mute = 98; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:104 */ + public static final int CLK_Stop = 99; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:105 */ + public static final int CLK_ScanPreviousTrack = 100; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:106 */ + public static final int CLK_PlayPause = 101; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:107 */ + public static final int CLK_ScanNextTrack = 102; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:108 */ + public static final int CLK_NumLock = 103; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:109 */ + public static final int CLK_KeypadSlash = 104; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:110 */ + public static final int CLK_KeypadAsterisk = 105; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:111 */ + public static final int CLK_KeypadMinus = 106; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:112 */ + public static final int CLK_KeypadPlus = 107; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:113 */ + public static final int CLK_KeypadEnter = 108; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:114 */ + public static final int CLK_Keypad7 = 109; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:115 */ + public static final int CLK_Keypad8 = 110; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:116 */ + public static final int CLK_Keypad9 = 111; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:117 */ + public static final int CLK_KeypadComma = 112; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:118 */ + public static final int CLK_Keypad4 = 113; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:119 */ + public static final int CLK_Keypad5 = 114; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:120 */ + public static final int CLK_Keypad6 = 115; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:121 */ + public static final int CLK_Keypad1 = 116; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:122 */ + public static final int CLK_Keypad2 = 117; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:123 */ + public static final int CLK_Keypad3 = 118; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:124 */ + public static final int CLK_Keypad0 = 119; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:125 */ + public static final int CLK_KeypadPeriodAndDelete = 120; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:126 */ + public static final int CLK_G1 = 121; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:127 */ + public static final int CLK_G2 = 122; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:128 */ + public static final int CLK_G3 = 123; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:129 */ + public static final int CLK_G4 = 124; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:130 */ + public static final int CLK_G5 = 125; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:131 */ + public static final int CLK_G6 = 126; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:132 */ + public static final int CLK_G7 = 127; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:133 */ + public static final int CLK_G8 = 128; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:134 */ + public static final int CLK_G9 = 129; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:135 */ + public static final int CLK_G10 = 130; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:136 */ + public static final int CLK_VolumeUp = 131; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:137 */ + public static final int CLK_VolumeDown = 132; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:138 */ + public static final int CLK_MR = 133; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:139 */ + public static final int CLK_M1 = 134; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:140 */ + public static final int CLK_M2 = 135; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:141 */ + public static final int CLK_M3 = 136; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:142 */ + public static final int CLK_G11 = 137; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:143 */ + public static final int CLK_G12 = 138; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:144 */ + public static final int CLK_G13 = 139; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:145 */ + public static final int CLK_G14 = 140; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:146 */ + public static final int CLK_G15 = 141; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:147 */ + public static final int CLK_G16 = 142; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:148 */ + public static final int CLK_G17 = 143; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:149 */ + public static final int CLK_G18 = 144; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:150 */ + public static final int CLK_International5 = 145; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:151 */ + public static final int CLK_International4 = 146; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:152 */ + public static final int CLK_Fn = 147; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:154 */ + public static final int CLM_1 = 148; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:155 */ + public static final int CLM_2 = 149; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:156 */ + public static final int CLM_3 = 150; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:157 */ + public static final int CLM_4 = 151; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:159 */ + public static final int CLH_LeftLogo = 152; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:160 */ + public static final int CLH_RightLogo = 153; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:162 */ + public static final int CLK_Logo = 154; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:164 */ + public static final int CLMM_Zone1 = 155; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:165 */ + public static final int CLMM_Zone2 = 156; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:166 */ + public static final int CLMM_Zone3 = 157; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:167 */ + public static final int CLMM_Zone4 = 158; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:168 */ + public static final int CLMM_Zone5 = 159; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:169 */ + public static final int CLMM_Zone6 = 160; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:170 */ + public static final int CLMM_Zone7 = 161; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:171 */ + public static final int CLMM_Zone8 = 162; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:172 */ + public static final int CLMM_Zone9 = 163; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:173 */ + public static final int CLMM_Zone10 = 164; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:174 */ + public static final int CLMM_Zone11 = 165; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:175 */ + public static final int CLMM_Zone12 = 166; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:176 */ + public static final int CLMM_Zone13 = 167; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:177 */ + public static final int CLMM_Zone14 = 168; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:178 */ + public static final int CLMM_Zone15 = 169; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:180 */ + public static final int CLKLP_Zone1 = 170; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:181 */ + public static final int CLKLP_Zone2 = 171; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:182 */ + public static final int CLKLP_Zone3 = 172; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:183 */ + public static final int CLKLP_Zone4 = 173; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:184 */ + public static final int CLKLP_Zone5 = 174; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:185 */ + public static final int CLKLP_Zone6 = 175; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:186 */ + public static final int CLKLP_Zone7 = 176; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:187 */ + public static final int CLKLP_Zone8 = 177; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:188 */ + public static final int CLKLP_Zone9 = 178; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:189 */ + public static final int CLKLP_Zone10 = 179; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:190 */ + public static final int CLKLP_Zone11 = 180; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:191 */ + public static final int CLKLP_Zone12 = 181; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:192 */ + public static final int CLKLP_Zone13 = 182; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:193 */ + public static final int CLKLP_Zone14 = 183; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:194 */ + public static final int CLKLP_Zone15 = 184; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:195 */ + public static final int CLKLP_Zone16 = 185; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:196 */ + public static final int CLKLP_Zone17 = 186; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:197 */ + public static final int CLKLP_Zone18 = 187; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:198 */ + public static final int CLKLP_Zone19 = 188; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:200 */ + public static final int CLM_5 = 189; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:201 */ + public static final int CLM_6 = 190; + /** native declaration : target\CUESDK\include\CorsairLedIdEnum.h:203 */ + public static final int CLI_Last = (int)CueSDKLibrary.CorsairLedId.CLM_6; + }; + /** + * contains list of available device types
+ * native declaration : target\CUESDK\include\CUESDK.h:3
+ * enum values + */ + public static interface CorsairDeviceType { + /** native declaration : target\CUESDK\include\CUESDK.h:5 */ + public static final int CDT_Unknown = 0; + /** native declaration : target\CUESDK\include\CUESDK.h:6 */ + public static final int CDT_Mouse = 1; + /** native declaration : target\CUESDK\include\CUESDK.h:7 */ + public static final int CDT_Keyboard = 2; + /** native declaration : target\CUESDK\include\CUESDK.h:8 */ + public static final int CDT_Headset = 3; + /** native declaration : target\CUESDK\include\CUESDK.h:9 */ + public static final int CDT_MouseMat = 4; + }; + /** + * contains list of available physical layouts for keyboards
+ * native declaration : target\CUESDK\include\CUESDK.h:12
+ * enum values + */ + public static interface CorsairPhysicalLayout { + /** + * dummy value
+ * native declaration : target\CUESDK\include\CUESDK.h:14 + */ + public static final int CPL_Invalid = 0; + /** native declaration : target\CUESDK\include\CUESDK.h:16 */ + public static final int CPL_US = 1; + /** native declaration : target\CUESDK\include\CUESDK.h:17 */ + public static final int CPL_UK = 2; + /** native declaration : target\CUESDK\include\CUESDK.h:18 */ + public static final int CPL_BR = 3; + /** native declaration : target\CUESDK\include\CUESDK.h:19 */ + public static final int CPL_JP = 4; + /** + * valid values for keyboard
+ * native declaration : target\CUESDK\include\CUESDK.h:20 + */ + public static final int CPL_KR = 5; + /** native declaration : target\CUESDK\include\CUESDK.h:22 */ + public static final int CPL_Zones1 = 6; + /** native declaration : target\CUESDK\include\CUESDK.h:23 */ + public static final int CPL_Zones2 = 7; + /** native declaration : target\CUESDK\include\CUESDK.h:24 */ + public static final int CPL_Zones3 = 8; + /** + * valid values for mouse
+ * native declaration : target\CUESDK\include\CUESDK.h:25 + */ + public static final int CPL_Zones4 = 9; + }; + /** + * contains list of available logical layouts for keyboards
+ * native declaration : target\CUESDK\include\CUESDK.h:28
+ * enum values + */ + public static interface CorsairLogicalLayout { + /** + * dummy value
+ * native declaration : target\CUESDK\include\CUESDK.h:30 + */ + public static final int CLL_Invalid = 0; + /** native declaration : target\CUESDK\include\CUESDK.h:31 */ + public static final int CLL_US_Int = 1; + /** native declaration : target\CUESDK\include\CUESDK.h:32 */ + public static final int CLL_NA = 2; + /** native declaration : target\CUESDK\include\CUESDK.h:33 */ + public static final int CLL_EU = 3; + /** native declaration : target\CUESDK\include\CUESDK.h:34 */ + public static final int CLL_UK = 4; + /** native declaration : target\CUESDK\include\CUESDK.h:35 */ + public static final int CLL_BE = 5; + /** native declaration : target\CUESDK\include\CUESDK.h:36 */ + public static final int CLL_BR = 6; + /** native declaration : target\CUESDK\include\CUESDK.h:37 */ + public static final int CLL_CH = 7; + /** native declaration : target\CUESDK\include\CUESDK.h:38 */ + public static final int CLL_CN = 8; + /** native declaration : target\CUESDK\include\CUESDK.h:39 */ + public static final int CLL_DE = 9; + /** native declaration : target\CUESDK\include\CUESDK.h:40 */ + public static final int CLL_ES = 10; + /** native declaration : target\CUESDK\include\CUESDK.h:41 */ + public static final int CLL_FR = 11; + /** native declaration : target\CUESDK\include\CUESDK.h:42 */ + public static final int CLL_IT = 12; + /** native declaration : target\CUESDK\include\CUESDK.h:43 */ + public static final int CLL_ND = 13; + /** native declaration : target\CUESDK\include\CUESDK.h:44 */ + public static final int CLL_RU = 14; + /** native declaration : target\CUESDK\include\CUESDK.h:45 */ + public static final int CLL_JP = 15; + /** native declaration : target\CUESDK\include\CUESDK.h:46 */ + public static final int CLL_KR = 16; + /** native declaration : target\CUESDK\include\CUESDK.h:47 */ + public static final int CLL_TW = 17; + /** native declaration : target\CUESDK\include\CUESDK.h:48 */ + public static final int CLL_MEX = 18; + }; + /** + * contains list of device capabilities
+ * native declaration : target\CUESDK\include\CUESDK.h:51
+ * enum values + */ + public static interface CorsairDeviceCaps { + /** + * for devices that do not support any SDK functions
+ * native declaration : target\CUESDK\include\CUESDK.h:53 + */ + public static final int CDC_None = 0; + /** + * for devices that has controlled lighting
+ * native declaration : target\CUESDK\include\CUESDK.h:54 + */ + public static final int CDC_Lighting = 1; + }; + /** + * contains list of available SDK access modes
+ * native declaration : target\CUESDK\include\CUESDK.h:57
+ * enum values + */ + public static interface CorsairAccessMode { + /** native declaration : target\CUESDK\include\CUESDK.h:59 */ + public static final int CAM_ExclusiveLightingControl = 0; + }; + /** + * contains shared list of all errors which could happen during calling of Corsair* functions
+ * native declaration : target\CUESDK\include\CUESDK.h:62
+ * enum values + */ + public static interface CorsairError { + /** + * if previously called function completed successfully
+ * native declaration : target\CUESDK\include\CUESDK.h:64 + */ + public static final int CE_Success = 0; + /** + * CUE is not running or was shut down or third-party control is disabled in CUE settings(runtime error)
+ * native declaration : target\CUESDK\include\CUESDK.h:65 + */ + public static final int CE_ServerNotFound = 1; + /** + * if some other client has or took over exclusive control (runtime error)
+ * native declaration : target\CUESDK\include\CUESDK.h:66 + */ + public static final int CE_NoControl = 2; + /** + * if developer did not perform protocol handshake(developer error)
+ * native declaration : target\CUESDK\include\CUESDK.h:67 + */ + public static final int CE_ProtocolHandshakeMissing = 3; + /** + * if developer is calling the function that is not supported by the server(either because protocol has broken by server or client or because the function is new and server is too old. Check CorsairProtocolDetails for details) (developer error)
+ * native declaration : target\CUESDK\include\CUESDK.h:68 + */ + public static final int CE_IncompatibleProtocol = 4; + /** + * if developer supplied invalid arguments to the function(for specifics look at function descriptions). (developer error)
+ * native declaration : target\CUESDK\include\CUESDK.h:69 + */ + public static final int CE_InvalidArguments = 5; + }; + /** native declaration : target\CUESDK\include\CUESDK.h:119 */ + public interface CorsairSetLedsColorsAsync_CallbackType_callback extends Callback { + void apply(Pointer voidPtr1, byte bool1, int CorsairError1); + }; + /** + * Original signature : bool CorsairSetLedsColors(int, CorsairLedColor*)
+ * native declaration : target\CUESDK\include\CUESDK.h:117 + */ + byte CorsairSetLedsColors(int size, CorsairLedColor ledsColors); + /** + * Original signature : bool CorsairSetLedsColorsAsync(int, CorsairLedColor*, CorsairSetLedsColorsAsync_CallbackType_callback*, void*)
+ * native declaration : target\CUESDK\include\CUESDK.h:119 + */ + byte CorsairSetLedsColorsAsync(int size, CorsairLedColor ledsColors, CueSDKLibrary.CorsairSetLedsColorsAsync_CallbackType_callback CallbackType, Pointer context); + /** + * Original signature : int CorsairGetDeviceCount()
+ * native declaration : target\CUESDK\include\CUESDK.h:122 + */ + int CorsairGetDeviceCount(); + /** + * Original signature : CorsairDeviceInfo* CorsairGetDeviceInfo(int)
+ * native declaration : target\CUESDK\include\CUESDK.h:125 + */ + CorsairDeviceInfo CorsairGetDeviceInfo(int deviceIndex); + /** + * Original signature : CorsairLedPositions* CorsairGetLedPositions()
+ * native declaration : target\CUESDK\include\CUESDK.h:128 + */ + CorsairLedPositions CorsairGetLedPositions(); + /** + * Original signature : CorsairLedPositions* CorsairGetLedPositionsByDeviceIndex(int)
+ * native declaration : target\CUESDK\include\CUESDK.h:131 + */ + CorsairLedPositions CorsairGetLedPositionsByDeviceIndex(int deviceIndex); + /** + * Original signature : CorsairLedId CorsairGetLedIdForKeyName(char)
+ * native declaration : target\CUESDK\include\CUESDK.h:134 + */ + int CorsairGetLedIdForKeyName(byte keyName); + /** + * Original signature : bool CorsairRequestControl(CorsairAccessMode)
+ * native declaration : target\CUESDK\include\CUESDK.h:137 + */ + byte CorsairRequestControl(int accessMode); + /** + * Original signature : CorsairProtocolDetails CorsairPerformProtocolHandshake()
+ * native declaration : target\CUESDK\include\CUESDK.h:140 + */ + ByValue CorsairPerformProtocolHandshake(); + /** + * Original signature : CorsairError CorsairGetLastError()
+ * native declaration : target\CUESDK\include\CUESDK.h:143 + */ + int CorsairGetLastError(); + /** + * Original signature : bool CorsairReleaseControl(CorsairAccessMode)
+ * native declaration : target\CUESDK\include\CUESDK.h:146 + */ + byte CorsairReleaseControl(int accessMode); +} diff --git a/src/main/jnaerator/config.jnaerator b/src/main/jnaerator/config.jnaerator index 6c5e077..1d8f8f4 100644 --- a/src/main/jnaerator/config.jnaerator +++ b/src/main/jnaerator/config.jnaerator @@ -4,6 +4,6 @@ -library CueSDK --package dk.allanmc.cuesdk.jna +-package dk.allanmc.cuesdk.jna.does_not_work $(DIR)/../../../target/CUESDK/include/CUESDK.h