mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-14 09:11:14 -05:00
* Reorganize and clean up RGBController API functions
* Add functions to get protected RGBController member values
* Make NetworkClient, ProfileManager, and ResourceManager friend classes so they can access protected members
* Protected previously-public RGBController members
* Information strings (name, vendor, description, version, serial location)
* Device type
* Active mode
* Flags
* LEDs vector
* LED alternate names vector
* Modes vector
* Colors vector
* Zones vector
* Add CONTROLLER_FLAG_HIDDEN to allow plugins to hide controllers from control GUI
* Add update reason codes to RGBController update callback and signal updates on more RGBController events
* Add loop zone types and segmented zone type
* Add matrix map field to segments
* Rework matrix_map_type from using pointers to vector to prevent memory leaks
* Rework KeyboardLayoutManager to return new matrix_map_type
* Add access mutex to RGBController API
* Add per-zone modes ot RGBController API
* Add JSON description functions to RGBController API
76 lines
2.6 KiB
C++
76 lines
2.6 KiB
C++
/*---------------------------------------------------------*\
|
|
| RGBController_DRGB.h |
|
|
| |
|
|
| Driver for DRGBmods |
|
|
| |
|
|
| Zhi Yan 25 Jun 2024 |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-or-later |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "RGBController.h"
|
|
#include "DRGBController.h"
|
|
|
|
#define DRGBV4_VID 0x2486
|
|
#define DRGB_LED_V4_PID 0x3608
|
|
#define DRGB_ULTRA_V4F_PID 0x3616
|
|
#define DRGB_CORE_V4F_PID 0x3628
|
|
#define DRGB_SIG_V4F_PID 0x3636
|
|
#define DRGB_AG_04_V4F_PID 0x3204
|
|
#define DRGB_AG_16_V4F_PID 0x3216
|
|
#define DRGB_AG_16_F12_PID 0x3F28
|
|
|
|
#define DRGB_L8_V5_PID 0x3208
|
|
#define DRGB_U16_V5_PID 0x3215
|
|
#define DRGB_U16_V5F_PID 0x3217
|
|
#define DRGB_C16_V5_PID 0x3228
|
|
#define DRGB_C16_V5F_PID 0x3229
|
|
#define DRGB_S16_V5F_PID 0x3232
|
|
|
|
#define DRGBV3_VID 0x2023
|
|
#define DRGB_LED_V3_PID 0x1209
|
|
#define DRGB_Ultra_V3_PID 0x1221
|
|
#define DRGB_CORE_V3_PID 0x1226
|
|
#define DRGB_E8_F_PID 0x1408
|
|
#define DRGB_E8_PID 0x1407
|
|
#define DRGB_E16_PID 0x1416
|
|
#define DM_10_PID 0x1410
|
|
#define JPU_12_PID 0x1412
|
|
|
|
#define DRGBV2_VID 0x2023
|
|
#define DRGB_LED_PID 0x1208
|
|
#define DRGB_ULTRA_PID 0x1220
|
|
#define DRGB_SIG_AB_PID 0x1210
|
|
#define DRGB_SIG_CD_PID 0x1211
|
|
#define DRGB_Strimer_PID 0x1215
|
|
|
|
#define YICO_VID 0x1368
|
|
#define YICO_8_PID 0x6077
|
|
#define YICO_08_PID 0x6078
|
|
#define YICO_08_1_PID 0x6079
|
|
#define YICO_14_PID 0x1614
|
|
#define YICO_16_PID 0x1616
|
|
|
|
class RGBController_DRGB : public RGBController
|
|
{
|
|
public:
|
|
RGBController_DRGB(DRGBController* controller_ptr);
|
|
~RGBController_DRGB();
|
|
|
|
void SetupZones();
|
|
void DeviceResizeZone(int zone, int new_size);
|
|
void DeviceUpdateLEDs();
|
|
void DeviceUpdateZoneLEDs(int zone);
|
|
void DeviceUpdateSingleLED(int led);
|
|
void DeviceUpdateMode();
|
|
|
|
private:
|
|
DRGBController* controller;
|
|
std::vector<unsigned int> leds_channel;
|
|
std::vector<unsigned int> zones_channel;
|
|
unsigned int Version = 4;
|
|
};
|