Store name in LogitechControllers to avoid setting it in detectors

This commit is contained in:
Adam Honse
2025-08-16 16:47:44 -05:00
parent 86fbdfa6e7
commit a0726dc065
35 changed files with 258 additions and 185 deletions

View File

@@ -13,10 +13,11 @@
#include "LogitechG213Controller.h"
#include "StringUtils.h"
LogitechG213Controller::LogitechG213Controller(hid_device* dev_handle, const char* path)
LogitechG213Controller::LogitechG213Controller(hid_device* dev_handle, const char* path, std::string dev_name)
{
dev = dev_handle;
location = path;
name = dev_name;
}
LogitechG213Controller::~LogitechG213Controller()
@@ -29,6 +30,11 @@ std::string LogitechG213Controller::GetDeviceLocation()
return("HID: " + location);
}
std::string LogitechG213Controller::GetNameString()
{
return(name);
}
std::string LogitechG213Controller::GetSerialString()
{
wchar_t serial_string[128];