Corsair Utility Engine bindings for Lua. Standalone app and library.
This projects binds CUE SDK and wraps in Lua environment.
Built with LuaJIT 2.1.0-beta3 x32.
Consult with this page about enums and internal functions.
Unimplemented: DYI device channels.
- breakingChanges
- sdkProtocolVersion
- sdkVersion
- serverProtocolVersion
- serverVersion
Uses Windows CPU clock functions.
Uses Windows function GetKeyState.
Prints table recursively with anti-loop protection.
Converts A-Z to CorsairLedId. Yeah, only them.
Returns CorsairDevice
object. Indexes start from 1.
General function for continuous actions.
Keyboard callback. Uses Windows hooks.
Called when device changes state. (Connected / Disconnected)
Corsair M and G buttons callback.
CorsairError (CE_) enum.
Prints CorsairDevice[index] [model]
.
Checks if internal pointers are valid. SDK didn't provide any solution to check, so it listens for DeviceStatusChanged
callback.
CorsairDeviceCaps (CDC_) enum.
CorsairDeviceCaps mask
Number of controllable LEDs.
The size of LED array.
CorsairLogicalLayout (CLL_) enum.
CorsairPhysicalLayout (CPL_) enum.
CorsairDeviceType (CDT_) enum.
CorsairDevicePropertyId (CDPI_) enum.
Function to set all LEDs.
Returns r, g, b.
Returns all LEDs and their colors.
- id
- x
- y
- w
- h