Files
OpenRGB/Controllers/SteelSeriesController/SteelSeriesApexTZoneController.h
Chris c966b04e45 Changing the Apex3 driver to more accurately represent the keyboard layout
+ Changing from Ten Zones with 1 LED to One zone with 10 LEDs
* Minor code cleanup
2022-01-28 21:40:05 +11:00

45 lines
1.1 KiB
C++

/*-----------------------------------------*\
| SteelSeriesApexTZoneController.h |
| |
| Edbgon 06.10.21 |
\*-----------------------------------------*/
#include <string>
#include <hidapi/hidapi.h>
#include "SteelSeriesGeneric.h"
#include "SteelSeriesApexBaseController.h"
#pragma once
#define STEELSERIES_TZ_WRITE_PACKET_SIZE 33
#define STEELSERIES_TZ_BRIGHTNESS_MIN 0x00
#define STEELSERIES_TZ_BRIGHTNESS_MAX 0x64
class SteelSeriesApexTZoneController
{
public:
SteelSeriesApexTZoneController
(
hid_device* dev_handle,
steelseries_type proto_type,
const char* path
);
~SteelSeriesApexTZoneController();
std::string GetDeviceLocation();
char* GetDeviceName();
std::string GetSerialString();
steelseries_type GetKeyboardType();
void SetColor(std::vector<RGBColor> colors, unsigned char brightness);
void Save();
private:
char device_name[32];
hid_device* dev;
std::string location;
steelseries_type proto;
};