mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-18 19:46:27 -04:00
Add support for Cougar Revenger ST - Closes #2312
This commit is contained in:
29
Controllers/CougarController/CougarControllerDetect.cpp
Normal file
29
Controllers/CougarController/CougarControllerDetect.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "Detector.h"
|
||||
#include "CougarRevengerSTController.h"
|
||||
#include "RGBController.h"
|
||||
#include "RGBController_CougarRevengerST.h"
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Cougar vendor ID |
|
||||
\*---------------------------------------------------------*/
|
||||
#define COUGAR_VID 0x12CF
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Product ID |
|
||||
\*---------------------------------------------------------*/
|
||||
#define COUGAR_REVENGER_ST_PID 0x0412
|
||||
|
||||
void DetectCougarRevengerSTControllers(hid_device_info* info, const std::string& name)
|
||||
{
|
||||
hid_device* dev = hid_open_path(info->path);
|
||||
|
||||
if(dev)
|
||||
{
|
||||
CougarRevengerSTController* controller = new CougarRevengerSTController(dev, *info);
|
||||
RGBController_CougarRevengerST* rgb_controller = new RGBController_CougarRevengerST(controller);
|
||||
rgb_controller->name = name;
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
||||
REGISTER_HID_DETECTOR_IPU("Cougar Revenger ST", DetectCougarRevengerSTControllers, COUGAR_VID, COUGAR_REVENGER_ST_PID, 0, 0x0001, 0x02);
|
||||
Reference in New Issue
Block a user