mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-26 08:47:50 -05:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
/*-----------------------------------------*\
|
|
| HyperXAlloyOriginsController.h |
|
|
| |
|
|
| Definitions and types for HyperX Alloy |
|
|
| Origins RGB Keyboard lighting controller |
|
|
| |
|
|
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
|
\*-----------------------------------------*/
|
|
|
|
#include "RGBController.h"
|
|
|
|
#include <string>
|
|
#include <hidapi/hidapi.h>
|
|
|
|
#pragma once
|
|
|
|
class HyperXAlloyOriginsController
|
|
{
|
|
public:
|
|
HyperXAlloyOriginsController(hid_device* dev_handle, const char* path);
|
|
~HyperXAlloyOriginsController();
|
|
|
|
std::string GetDeviceLocation();
|
|
std::string GetSerialString();
|
|
|
|
void SetLEDsDirect(std::vector<RGBColor> colors);
|
|
|
|
private:
|
|
hid_device* dev;
|
|
std::string location;
|
|
|
|
void SendDirectInitialization();
|
|
void SendDirectColorPacket
|
|
(
|
|
RGBColor* color_data,
|
|
unsigned int color_count
|
|
);
|
|
};
|