mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-26 16:57:51 -05:00
* Added serial number support * Amended to pass in HID device information for version number rather than enumerate a second time Commits squashed and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
35 lines
975 B
C++
35 lines
975 B
C++
/*------------------------------------------*\
|
|
| HyperXAlloyOriginsCoreController.h |
|
|
| |
|
|
| Definitions and types for HyperX Alloy |
|
|
| Origins Core RGB Keyboard lighting |
|
|
| controller |
|
|
| |
|
|
| Volodymyr Nazarchuk (Vavooon) 4/28/2021 |
|
|
\*------------------------------------------*/
|
|
|
|
#include "RGBController.h"
|
|
|
|
#include <string>
|
|
#include <hidapi/hidapi.h>
|
|
|
|
#pragma once
|
|
|
|
class HyperXAlloyOriginsCoreController
|
|
{
|
|
public:
|
|
HyperXAlloyOriginsCoreController(hid_device* dev_handle, hid_device_info* dev_info);
|
|
~HyperXAlloyOriginsCoreController();
|
|
|
|
std::string GetDeviceLocation();
|
|
std::string GetSerialString();
|
|
std::string GetFirmwareVersion();
|
|
|
|
void SetLEDsDirect(std::vector<RGBColor> colors);
|
|
|
|
private:
|
|
hid_device* dev;
|
|
std::string location;
|
|
std::string firmware_version;
|
|
};
|