Files
OpenRGB/Controllers/CreativeController/CreativeSoundBlasterXG6Controller.h

36 lines
1.3 KiB
C++

/*---------------------------------------------------------*\
| CreativeSoundBlasterXG6Controller.h |
| |
| Driver for Creative SoundBlaster XG6 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <cstring>
#include <hidapi.h>
#include "RGBController.h"
class CreativeSoundBlasterXG6Controller
{
public:
CreativeSoundBlasterXG6Controller(hid_device* dev_handle, const char* path, std::string dev_name);
~CreativeSoundBlasterXG6Controller();
void SetLedColor(unsigned char red,
unsigned char green,
unsigned char blue,
unsigned char brightness);
std::string GetDeviceLocation();
std::string GetDeviceName();
std::string GetSerialString();
private:
hid_device* dev;
std::string location;
std::string name;
};