Skip to content

Helper Objects

Fiercest edited this page Apr 20, 2020 · 2 revisions

CorsairDevice

// Getters

DeviceType getType()

String getModelName()

PhysicalLayout getPhysicalLayout()

LogicalLayout getLogicalLayout()

DeviceCaps getCapabilities()

int getLedCount()

List<CorsairChannel> getChannels() // Empty if the device doesn't have any channels.

byte[] getDeviceId() // The device's unique ID.

Color

//Constructors

Color(int r, int g, int b) // Create a color using rgb values.

Color(int hex) // Create a color using an int based hex color.

//Getters

int getR()

int getG()

int getB()

CorsairChannel

//Getters

int getTotalLedsCount()

int getDevicesCount()

List<CorsairChannelDevice> getDevices()

CorsairChannelDevice

//Getters

CorsairChannelDeviceType getType

int getDeviceLedCount()

CorsairLedPosition

//Getters
LedId getLedId()

double getTop()

double getLeft()

double getHeight()

double getWidth()

CorsairProtocolDetails

//Getters

String getSdkVersion()

String getServerVersion()

int getSdkProtocolVersion()

int getServerProtocolVersion()

boolean isBreakingChanges()

DeviceRemovedEvent

// Does not have any fields at the moment. This feature is not working properly.

KeyCallbackEvent

//Getters

KeyId getKeyId()

boolean isPressed()

Clone this wiki locally