Files
OpenRGB/Controllers/CreativeController/CreativeSoundBlasterXG6Controller.h

25 lines
690 B
C++

#include "RGBController.h"
#include <cstring>
#include <hidapi/hidapi.h>
#pragma once
class CreativeSoundBlasterXG6Controller
{
public:
CreativeSoundBlasterXG6Controller(hid_device* dev_handle, const char* path);
~CreativeSoundBlasterXG6Controller();
void SetLedColor(unsigned char red,
unsigned char green,
unsigned char blue,
unsigned char brightness);
std::string GetDeviceLocation();
std::string GetSerialString();
private:
hid_device* dev;
std::string location;
};