mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-31 19:27:50 -05:00
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
/*-----------------------------------------*\
|
|
| DuckyKeyboardController.h |
|
|
| |
|
|
| Definitions and types for Ducky RGB |
|
|
| keyboard lighting controller |
|
|
| |
|
|
| Adam Honse (CalcProgrammer1) 7/4/2020 |
|
|
\*-----------------------------------------*/
|
|
|
|
#include "RGBController.h"
|
|
|
|
#include <string>
|
|
#include <hidapi/hidapi.h>
|
|
|
|
#pragma once
|
|
|
|
class DuckyKeyboardController
|
|
{
|
|
public:
|
|
DuckyKeyboardController(hid_device* dev_handle);
|
|
~DuckyKeyboardController();
|
|
|
|
void SendColors
|
|
(
|
|
unsigned char* color_data,
|
|
unsigned int color_data_size
|
|
);
|
|
|
|
private:
|
|
hid_device* dev;
|
|
|
|
void SendInitialize();
|
|
void SendInitializeColorPacket();
|
|
unsigned int SendColorDataPacket
|
|
(
|
|
unsigned char packet_id,
|
|
unsigned char* color_data,
|
|
unsigned int color_size
|
|
);
|
|
void SendTerminateColorPacket();
|
|
}; |