/*---------------------------------------------------------*\ | AlienwareMonitorControllerDetect.cpp | | | | Detector for Alienware monitors | | | | Adam Honse (CalcProgrammer1) 08 May 2025 | | | | This file is part of the OpenRGB project | | SPDX-License-Identifier: GPL-2.0-or-later | \*---------------------------------------------------------*/ #include #include "AlienwareMonitorController.h" #include "DetectionManager.h" #include "RGBController_AlienwareMonitor.h" /*---------------------------------------------------------*\ | Alienware Vendor ID | \*---------------------------------------------------------*/ #define ALIENWARE_VID 0x187C /*---------------------------------------------------------*\ | Alienware Vendor ID | \*---------------------------------------------------------*/ #define ALIENWARE_AW3225QF_PID 0x1013 #define ALIENWARE_USAGE_PAGE 0xFFDA #define ALIENWARE_USAGE 0x00DA DetectedControllers DetectAlienwareMonitorControllers(hid_device_info* info, const std::string& name) { DetectedControllers detected_controllers; hid_device* dev; dev = hid_open_path(info->path); if(dev) { AlienwareMonitorController* controller = new AlienwareMonitorController(dev, info->path, name); RGBController_AlienwareMonitor* rgb_controller = new RGBController_AlienwareMonitor(controller); detected_controllers.push_back(rgb_controller); } return(detected_controllers); } REGISTER_HID_DETECTOR("Alienware AW3225QF", DetectAlienwareMonitorControllers, ALIENWARE_VID, ALIENWARE_AW3225QF_PID);