Files
OpenRGB/Controllers/LogitechController/LogitechX56Controller.h
Chris cac67592b7 Correcting the metadata for the Logitech x56 HOTAS to resolve #2574
* Changing detector to IPU to remove duplicate detection
+ Adding Save() method to controller
+ Adding Brightness
2022-08-09 18:24:12 +00:00

37 lines
951 B
C++

/*-----------------------------------------*\
| LogitechX56Controller.h |
| |
| Generic RGB Interface Logitech X56 |
| Class |
| |
| Edbgon 11/06/2021 |
\*-----------------------------------------*/
#include "RGBController.h"
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#define X56_CONTROLLER_PACKET_SIZE 64
class LogitechX56Controller
{
public:
LogitechX56Controller(hid_device* dev_handle, const char* path);
~LogitechX56Controller();
std::string GetDeviceLocation();
char* GetDeviceName();
std::string GetSerialString();
void SetColor(RGBColor colors, uint8_t brightness);
void Save();
private:
char device_name[32];
hid_device* dev;
std::string location;
};