Splitting out the WootingTwoKeyboardController

* Added WootingOneKeyboardController.h
* Added WootingOneKeyboardController.cpp
* Added WootingTwoKeyboardController.h
* Added WootingTwoKeyboardController.cpp
* Unified the WootingKeyboardController as a virtual class
* Modified WootingKeyboardControllerDetect to use the new controllers
* Wooting One & Two use the old controller
* Wooting Two LE & HE use the new controller
* Adding Udev rules for the WootingTwo LE & HE
This commit is contained in:
Chris
2021-07-16 10:20:35 +10:00
committed by Adam Honse
parent 41ac14dd41
commit 84de7ebc3e
10 changed files with 498 additions and 307 deletions

View File

@@ -0,0 +1,25 @@
/*-------------------------------------------------------------------*\
| WootingTwoKeyboardController.h |
| |
| OpenRGB driver for Wooting RGB keyboardlighting controller |
| https://github.com/WootingKb/wooting-rgb-sdk |
| |
| Chris M (Dr_No) 9th July 2021 |
\*-------------------------------------------------------------------*/
#include "WootingKeyboardController.h"
#pragma once
class WootingTwoKeyboardController : public WootingKeyboardController
{
public:
WootingTwoKeyboardController(hid_device* dev_handle, const char *path, uint8_t wooting_type);
~WootingTwoKeyboardController();
void SendDirect(RGBColor* colors, uint8_t colour_count);
private:
void SendInitialize();
bool wooting_usb_send_buffer(RGB_PARTS part_number, uint8_t* report_buffer);
};