-
Notifications
You must be signed in to change notification settings - Fork 0
/
lcuelib_device.h
44 lines (41 loc) · 1.05 KB
/
lcuelib_device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#ifdef __APPLE__
#include <CUESDK/CUESDK.h>
#else
#include <CUESDK.h>
#endif
#include "lua.hpp"
#include "luahelpers.h"
class CorsairDevice
{
public:
CorsairDevice(int index);
~CorsairDevice();
bool IsValid();
const char* GetModel();
const char* GetID();
unsigned char GetIndex();
bool HasCapability(CorsairDeviceCaps cap);
int GetCapabilities();
int GetAllLEDsCount();
int GetLEDsCount();
CorsairLedPosition* GetLEDsPos();
CorsairLogicalLayout GetLogicalLayout();
CorsairPhysicalLayout GetPhysicalLayout();
CorsairDeviceType GetType();
bool IsTypeOf(CorsairDeviceType type);
int GetIntProperty(CorsairDevicePropertyId p);
bool GetBoolProperty(CorsairDevicePropertyId p);
bool SetLEDsColors(int size, CorsairLedColor* arr);
bool SetFlushLEDsColors(int size, CorsairLedColor* arr);
bool FlushLEDs();
CorsairLedColor GetLEDColor(CorsairLedId id);
void Clear();
void Reinitialize();
private:
int index;
CorsairDeviceInfo* info;
CorsairLedPositions* leds;
};
void cue_importdevice(Lua);
CorsairDevice* FindByDeviceID(const char* id);