Store name in HyperXMousematControllers to avoid setting it in detector

This commit is contained in:
Adam Honse committed 2025-08-11 17:24:00 -05:00
1 parent 12f90a67f9
commit 0269cdd068
4 files changed
+22 -20

No files matched your search

@@ -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];