Files
OpenRGB/Controllers/StreamDeckController/RGBController_ElgatoStreamDeck.h

37 lines
1.2 KiB
C++

/*---------------------------------------------------------*\
| RGBController_ElgatoStreamDeck.h |
| |
| RGBController for Elgato Stream Deck MK.2 |
| |
| Ferréol DUBOIS COLI (Fefe_du_973) 23 Jan 2025 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include "ElgatoStreamDeckController.h"
#include "RGBController.h"
class RGBController_ElgatoStreamDeck : public RGBController
{
public:
explicit RGBController_ElgatoStreamDeck(ElgatoStreamDeckController* controller_ptr);
~RGBController_ElgatoStreamDeck();
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
private:
ElgatoStreamDeckController* controller;
std::vector<unsigned char> CreateButtonImage(const RGBColor& color);
};