Adding Wooting Two keyboards support

+ Add full matrix map
+ Amend WootingKeyboardController::SendDirect to support extra keys
+ Adjust WootingKeyboardController::wooting_usb_send_buffer to support extra buffer
This commit is contained in:
Chris 2021-06-28 13:23:08 +10:00 committed by Adam Honse
parent ad6d605c88
commit 79e1233635
4 changed files with 120 additions and 47 deletions

View file

@ -28,7 +28,9 @@ void DetectWootingKeyboardControllers(hid_device_info* info, const std::string&
if(dev)
{
WootingKeyboardController* controller = new WootingKeyboardController(dev, info->path);
uint8_t wooting_type = (info->product_id == WOOTING_ONE_PID) ? WOOTING_KB_TKL : WOOTING_KB_FULL;
WootingKeyboardController* controller = new WootingKeyboardController(dev, info->path, wooting_type);
RGBController_WootingKeyboard* rgb_controller = new RGBController_WootingKeyboard(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);