Store name in AOCMouseController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-03 21:38:07 -05:00
parent 5799ea8160
commit 74bbaaf643
4 changed files with 12 additions and 5 deletions

View file

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