mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-26 16:57:51 -05:00
Squash commits and code style changes, minor reworks to match Alloy Elite 1 code by Adam Honse <calcprogrammer1@gmail.com>
34 lines
1003 B
C++
34 lines
1003 B
C++
/*-----------------------------------------*\
|
|
| HyperXAlloyElite2Controller.h |
|
|
| |
|
|
| Definitions and types for HyperX Alloy |
|
|
| Elite2 RGB Keyboard lighting controller |
|
|
| |
|
|
| KundaPanda (vojdo) 02/04/2021 |
|
|
\*-----------------------------------------*/
|
|
|
|
#include "RGBController.h"
|
|
|
|
#include <string>
|
|
#include <hidapi/hidapi.h>
|
|
|
|
#pragma once
|
|
|
|
class HyperXAlloyElite2Controller
|
|
{
|
|
public:
|
|
HyperXAlloyElite2Controller(hid_device* dev_handle, const char* path);
|
|
~HyperXAlloyElite2Controller();
|
|
|
|
std::string GetDeviceLocation();
|
|
std::string GetSerialString();
|
|
|
|
void SetLEDsDirect(const std::vector<RGBColor>& colors);
|
|
|
|
private:
|
|
hid_device* dev;
|
|
std::string location;
|
|
|
|
void SendDirectInitialization();
|
|
};
|