Store name in AlienwareMonitorController to avoid setting it in detector
This commit is contained in:
parent
5e45480a0e
commit
e4da571d6b
4 changed files with 14 additions and 6 deletions
|
|
@ -15,10 +15,11 @@
|
|||
|
||||
#include "AlienwareMonitorController.h"
|
||||
|
||||
AlienwareMonitorController::AlienwareMonitorController(hid_device *dev_handle, const char *path)
|
||||
AlienwareMonitorController::AlienwareMonitorController(hid_device *dev_handle, const char *path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
|
||||
Initialize();
|
||||
}
|
||||
|
|
@ -33,6 +34,11 @@ std::string AlienwareMonitorController::GetLocation()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string AlienwareMonitorController::GetName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string AlienwareMonitorController::GetSerialString()
|
||||
{
|
||||
return("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue