mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-06-26 06:24:54 -04:00
Add support for SayoDevice E1
This commit is contained in:
committed by
Adam Honse
parent
103306c6c8
commit
94042375a7
@@ -0,0 +1,42 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| SayoDeviceControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for Sayo Devices |
|
||||
| |
|
||||
| Richard Harris 24 Jun 2026 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "Detector.h"
|
||||
#include "SayoDeviceController.h"
|
||||
#include "RGBController_SayoDevice.h"
|
||||
|
||||
#define SAYO_USB_VID 0x8089
|
||||
#define SAYO_USB_PID_E1 0x0007
|
||||
|
||||
/*----------------------------------------------------------*\
|
||||
| |
|
||||
| DetectSayoDevice Controller |
|
||||
| |
|
||||
| Detect Sayo Devices |
|
||||
| |
|
||||
\*----------------------------------------------------------*/
|
||||
|
||||
void DetectSayoDeviceController
|
||||
(
|
||||
hid_device_info* info,
|
||||
const std::string& name
|
||||
)
|
||||
{
|
||||
hid_device* dev = hid_open_path(info->path);
|
||||
if(dev != nullptr)
|
||||
{
|
||||
SayoDeviceController* controller = new SayoDeviceController(dev, info->path, name);
|
||||
RGBController_SayoDevice *rgb_controller = new RGBController_SayoDevice(controller);
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
||||
REGISTER_HID_DETECTOR_PU("SayoDevice E1", DetectSayoDeviceController, SAYO_USB_VID, SAYO_USB_PID_E1, 0xFF11, 0x0002);
|
||||
Reference in New Issue
Block a user