Files
OpenRGB/Controllers/QMKOpenRGBController/QMKOpenRGBRev9Controller.h
Chris M b05f954d35 Updates for QMK key code mapping
* Added QMKOpenRGBBaseController
* Refactored Rev9, RevB and RevD controllers to remove redundant code
* Updated "qmk_keycode_keyname_map" to add missing keycodes
* Resolves #3781
2023-12-25 07:47:15 +00:00

32 lines
1.3 KiB
C++

/*-------------------------------------------------------------------*\
| QMKOpenRGBRev9Controller.h |
| |
| Driver for QMK keyboards using OpenRGB Protocol (Revision 9) |
| |
| Revision 9 was the initial protocol supported by OpenRGB 0.6. |
| |
| Kasper 10th Octobber 2020 |
| Jath03 28th May 2021 |
\*-------------------------------------------------------------------*/
#pragma once
#include "QMKOpenRGBBaseController.h"
class QMKOpenRGBRev9Controller : public QMKOpenRGBBaseController
{
public:
QMKOpenRGBRev9Controller(hid_device *dev_handle, const char *path);
~QMKOpenRGBRev9Controller();
//Virtual function implementations
void GetLEDInfo(unsigned int led);
void DirectModeSetSingleLED(unsigned int led, unsigned char red, unsigned char green, unsigned char blue);
void DirectModeSetLEDs(std::vector<RGBColor> colors, unsigned int num_colors);
//Protocol Specific functions
bool GetIsModeEnabled(unsigned int mode);
private:
};