mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-24 09:28:52 -04:00
Store name in HyperXMicrophoneController to avoid setting it in detector
This commit is contained in:
1 parent
0eee6044b2
commit
0c0ffe7f5c
4 files changed
+13
-5
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user