Add Lexip Gaming mouse support - Closes #2245
This commit is contained in:
parent
8120fcdd5a
commit
ea0c19d31e
7 changed files with 272 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
#include "Detector.h"
|
||||
#include "LexipMouseController.h"
|
||||
#include "RGBController.h"
|
||||
#include "RGBController_LexipMouse.h"
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Lexip vendor ID |
|
||||
\*---------------------------------------------------------*/
|
||||
#define LEXIP_VID 0x04D8
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Product ID |
|
||||
\*---------------------------------------------------------*/
|
||||
#define LEXIP_NP93_ALPHA_PID 0xFD0A
|
||||
|
||||
void DetectLexipMouseControllers(hid_device_info* info, const std::string& name)
|
||||
{
|
||||
hid_device* dev = hid_open_path(info->path);
|
||||
|
||||
if(dev)
|
||||
{
|
||||
LexipMouseController* controller = new LexipMouseController(dev, *info);
|
||||
RGBController_LexipMouse* rgb_controller = new RGBController_LexipMouse(controller);
|
||||
rgb_controller->name = name;
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
||||
REGISTER_HID_DETECTOR_IPU("Np93 ALPHA - Gaming Mouse", DetectLexipMouseControllers, LEXIP_VID, LEXIP_NP93_ALPHA_PID, 0, 0x0001, 2);
|
||||
Loading…
Add table
Add a link
Reference in a new issue