Store name in DasKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-06 17:13:55 -05:00
parent e6190ec275
commit 718962c188
4 changed files with 41 additions and 80 deletions

View File

@@ -18,26 +18,24 @@
class DasKeyboardController
{
public:
DasKeyboardController(hid_device *dev_handle, const char *path);
DasKeyboardController(hid_device *dev_handle, const char *path, std::string dev_name);
~DasKeyboardController();
std::string GetDeviceLocation();
std::string GetLayoutString();
std::string GetLocationString();
std::string GetNameString();
std::string GetSerialString();
std::string GetVersionString();
std::string GetLayoutString();
void SendColors(unsigned char key_id, unsigned char mode,
unsigned char red, unsigned char green, unsigned char blue);
void SendColors(unsigned char key_id, unsigned char mode, unsigned char red, unsigned char green, unsigned char blue);
void SendApply();
private:
hid_device *dev;
std::string location;
std::string name;
std::string version;
bool useTraditionalSendData;