OpenRGB/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.h

43 lines
1.2 KiB
C++

/*---------------------------------------------------------*\
| SteelSeriesSiberiaController.h |
| |
| Driver for SteelSeries Siberia |
| |
| E Karlsson (pilophae) 18 Jun 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include <hidapi/hidapi.h>
class SteelSeriesSiberiaController
{
public:
SteelSeriesSiberiaController
(
hid_device* dev_handle,
const char* path
);
~SteelSeriesSiberiaController();
std::string GetDeviceLocation();
char* GetDeviceName();
std::string GetSerialString();
void SetColor
(
unsigned char red,
unsigned char green,
unsigned char blue
);
private:
char device_name[32];
hid_device* dev;
std::string location;
};