Store name in HyperXMousematControllers to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-11 17:18:29 -05:00
parent 12f90a67f9
commit 0269cdd068
4 changed files with 22 additions and 20 deletions

View File

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