mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-25 08:17:53 -05:00
36 lines
1.3 KiB
C++
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;
|
|
};
|