Publish LumaOps source

This commit is contained in:
LumaOps release export
2026-09-03 01:18:36 +02:00
commit 7f1c0e5f71
2363 changed files with 501543 additions and 0 deletions
@@ -0,0 +1,39 @@
/*---------------------------------------------------------*\
| MSIOptixControllerDetect.cpp |
| |
| Detector for MSI Optix |
| |
| Morgan Guimard (morg) 10 Jan 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "MSIOptixController.h"
#include "RGBController_MSIOptix.h"
/*---------------------------------------------------------*\
| MSI vendor ID |
\*---------------------------------------------------------*/
#define MSI_VID 0x1462
/*---------------------------------------------------------*\
| Product ID |
\*---------------------------------------------------------*/
#define MSI_OPTIX_MAG274QRF_PID 0x3FA4
void DetectMSIOptixControllers(hid_device_info* info, const std::string& name)
{
hid_device* dev = hid_open_path(info->path);
if(dev)
{
MSIOptixController* controller = new MSIOptixController(dev, *info, name);
RGBController_MSIOptix* rgb_controller = new RGBController_MSIOptix(controller);
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}
REGISTER_HID_DETECTOR_IPU("MSI Optix controller", DetectMSIOptixControllers, MSI_VID, MSI_OPTIX_MAG274QRF_PID, 0, 0xFF00, 1);