mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-02 04:07:48 -05:00
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
/*-----------------------------------------*\
|
|
| RGBController_HyperXAlloyOrigins.h |
|
|
| |
|
|
| Generic RGB Interface for HyperX Alloy |
|
|
| Origins RGB Keyboard |
|
|
| |
|
|
| Adam Honse (CalcProgrammer1) 7/11/2020 |
|
|
\*-----------------------------------------*/
|
|
|
|
#pragma once
|
|
#include <chrono>
|
|
|
|
#include "RGBController.h"
|
|
#include "HyperXAlloyOriginsController.h"
|
|
|
|
class RGBController_HyperXAlloyOrigins : public RGBController
|
|
{
|
|
public:
|
|
RGBController_HyperXAlloyOrigins(HyperXAlloyOriginsController* controller_ptr);
|
|
~RGBController_HyperXAlloyOrigins();
|
|
|
|
void SetupZones();
|
|
|
|
void ResizeZone(int zone, int new_size);
|
|
|
|
void DeviceUpdateLEDs();
|
|
void UpdateZoneLEDs(int zone);
|
|
void UpdateSingleLED(int led);
|
|
|
|
void SetCustomMode();
|
|
void DeviceUpdateMode();
|
|
|
|
void KeepaliveThread();
|
|
|
|
private:
|
|
HyperXAlloyOriginsController* controller;
|
|
std::thread* keepalive_thread;
|
|
std::atomic<bool> keepalive_thread_run;
|
|
std::chrono::time_point<std::chrono::steady_clock> last_update_time;
|
|
};
|