mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-22 10:24:56 -04:00
MSI Motherboard Cleanup - Rename Mystic Light to Motherboard, move MSI Mystic Light 64 to keyboard as it is a keyboard, do some code cleanup
This commit is contained in:
1 parent
b25250db7b
commit
454344185c
30 files changed
+1132
-1134
No files matched your search
+34
@@ -0,0 +1,34 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| MSIKeyboard1565ControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for MSI Mystic Light MS-1565 Keyboard |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "DetectionManager.h"
|
||||
#include "MSIKeyboard1565Controller.h"
|
||||
#include "RGBController_MSIKeyboard1565.h"
|
||||
|
||||
#define MSI_USB_VID 0x1462
|
||||
|
||||
DetectedControllers DetectMSIKeyboardController(hid_device_info* info, const std::string& /*name*/)
|
||||
{
|
||||
DetectedControllers detected_controllers;
|
||||
hid_device* dev;
|
||||
|
||||
dev = hid_open_path(info->path);
|
||||
|
||||
if(dev)
|
||||
{
|
||||
MSIKeyboard1565Controller* controller = new MSIKeyboard1565Controller(dev, info->path);
|
||||
RGBController_MSIKeyboard1565* rgb_controller = new RGBController_MSIKeyboard1565(controller);
|
||||
|
||||
detected_controllers.push_back(rgb_controller);
|
||||
}
|
||||
|
||||
return(detected_controllers);
|
||||
}
|
||||
|
||||
REGISTER_HID_DETECTOR_PU("MSI Keyboard MS_1565", DetectMSIKeyboardController, MSI_USB_VID, 0x1601, 0x00FF, 0x01);
|
||||
Reference in new issue
Block a user