Store name in HyperXMicrophoneController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-10 21:02:42 -05:00
parent 0eee6044b2
commit 0c0ffe7f5c
4 changed files with 13 additions and 5 deletions

View File

@@ -15,11 +15,12 @@
using namespace std::chrono_literals;
HyperXMicrophoneController::HyperXMicrophoneController(hidapi_wrapper hid_wrapper, hid_device* dev_handle, std::string path)
HyperXMicrophoneController::HyperXMicrophoneController(hidapi_wrapper hid_wrapper, hid_device* dev_handle, std::string path, std::string dev_name)
{
wrapper = hid_wrapper;
dev = dev_handle;
location = path;
name = dev_name;
}
HyperXMicrophoneController::~HyperXMicrophoneController()
@@ -36,7 +37,12 @@ HyperXMicrophoneController::~HyperXMicrophoneController()
std::string HyperXMicrophoneController::GetDeviceLocation()
{
return location;
return(location);
}
std::string HyperXMicrophoneController::GetNameString()
{
return(name);
}
std::string HyperXMicrophoneController::GetSerialString()