Make Razer Chroma ARGB controller outputs resizable

This commit is contained in:
Adam Honse 2021-04-11 21:02:36 -05:00
parent 78b4b8fa7c
commit 516aefeaa6
4 changed files with 334 additions and 2 deletions

View file

@ -5,6 +5,7 @@
#include "ResourceManager.h"
#include "RGBController.h"
#include "RGBController_Razer.h"
#include "RGBController_RazerAddressable.h"
#include "RGBController_RazerKraken.h"
#include <hidapi/hidapi.h>
@ -116,8 +117,8 @@ void DetectRazerARGBControllers(hid_device_info* info, const std::string& name)
}
if(dev_interface_0 && dev_interface_1)
{
RazerController* controller = new RazerController(dev_interface_0, dev_interface_1, info->path, info->product_id, name);
RGBController_Razer* rgb_controller = new RGBController_Razer(controller);
RazerController* controller = new RazerController(dev_interface_0, dev_interface_1, info->path, info->product_id, name);
RGBController_RazerAddressable* rgb_controller = new RGBController_RazerAddressable(controller);
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
else