mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
/*---------------------------------------------------------*\
|
|
| RGBController_HyperXMicrophone.h |
|
|
| |
|
|
| RGBController for HyperX microphone |
|
|
| |
|
|
| Matt Silva (thesilvanator) |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-or-later |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
#include "RGBController.h"
|
|
#include "HyperXMicrophoneController.h"
|
|
|
|
class RGBController_HyperXMicrophone : public RGBController
|
|
{
|
|
public:
|
|
RGBController_HyperXMicrophone(HyperXMicrophoneController* controller_ptr);
|
|
~RGBController_HyperXMicrophone();
|
|
|
|
void SetupZones();
|
|
|
|
void ResizeZone(int zone, int new_size);
|
|
|
|
void DeviceUpdateLEDs();
|
|
void UpdateZoneLEDs(int zone);
|
|
void UpdateSingleLED(int led);
|
|
|
|
void DeviceUpdateMode();
|
|
void DeviceSaveMode();
|
|
|
|
void KeepaliveThread();
|
|
|
|
private:
|
|
HyperXMicrophoneController* controller;
|
|
std::thread* keepalive_thread;
|
|
std::atomic<bool> keepalive_thread_run;
|
|
std::chrono::time_point<std::chrono::steady_clock> last_update_time;
|
|
};
|