OpenRGB/Controllers/SteelSeriesController/SteelSeriesApexBaseController.h
2020-12-02 12:18:56 -06:00

40 lines
945 B
C++

/*-----------------------------------------*\
| SteelSeriesApexBaseController.h |
| |
| Base controller for SteelSeries Apex |
| Keyboard lighting controllers |
| |
| Florian Heilmann (FHeilmann) 19/10/2020 |
\*-----------------------------------------*/
#include "RGBController.h"
#include "SteelSeriesGeneric.h"
#include <string>
#pragma once
class SteelSeriesApexBaseController
{
public:
std::string GetDeviceLocation()
{
return("HID: " + location);
};
steelseries_type proto_type;
virtual void SetMode
(
unsigned char mode,
std::vector<RGBColor> colors
) = 0;
virtual void SetLEDsDirect(std::vector<RGBColor> colors) = 0;
protected:
std::string location;
hid_device* dev;
unsigned char active_mode;
};