mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-25 16:27:50 -05:00
* Renamed "Obins Lab" to "Obinslab" as that is the name that I saw used most frequently in store listings. Commit amended for code style and to update the name by Adam Honse <calcprogrammer1@gmail.com>
36 lines
856 B
C++
36 lines
856 B
C++
/*-----------------------------------------*\
|
|
| AnnePro2Controller.h |
|
|
| |
|
|
| Driver for Obins Lab AnnePro2 keyboard |
|
|
| |
|
|
| Sergey Gavrilov (DrZlo13) 06/06/2021 |
|
|
\*-----------------------------------------*/
|
|
|
|
#pragma once
|
|
#include "RGBController.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <hidapi/hidapi.h>
|
|
|
|
#pragma once
|
|
|
|
class AnnePro2Controller
|
|
{
|
|
public:
|
|
AnnePro2Controller(hid_device* dev_handle, const char* path);
|
|
~AnnePro2Controller();
|
|
|
|
std::string GetDeviceLocation();
|
|
std::string GetSerialString();
|
|
|
|
void SendDirect
|
|
(
|
|
unsigned char frame_count,
|
|
unsigned char * frame_data
|
|
);
|
|
|
|
private:
|
|
hid_device* dev;
|
|
std::string location;
|
|
}; |