Files
OpenRGB/Controllers/DreamCheekyController/DreamCheekyController.h
2024-09-06 23:42:47 -05:00

32 lines
1021 B
C++

/*---------------------------------------------------------*\
| DreamCheekyController.h |
| |
| Driver for Dream Cheeky devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 06 Sep 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include <hidapi.h>
class DreamCheekyController
{
public:
DreamCheekyController(hid_device* dev_handle, const char* path);
~DreamCheekyController();
std::string GetDeviceLocation();
std::string GetSerialString();
void SetColor(unsigned char red, unsigned char grn, unsigned char blu);
private:
hid_device* dev;
std::string location;
};