Files
OpenRGB/Controllers/HyperXKeyboardController/HyperXAlloyElite2Controller.h
KundaPanda b572c15cce Add HyperX Alloy Elite 2 support
Squash commits and code style changes, minor reworks to match Alloy Elite 1 code by Adam Honse <calcprogrammer1@gmail.com>
2021-04-04 19:05:32 -05:00

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();
};