Store name in EVisionKeyboardControllers to avoid setting it in detectors
This commit is contained in:
parent
d7f0872690
commit
abe7068197
8 changed files with 259 additions and 258 deletions
|
|
@ -14,10 +14,11 @@
|
|||
#include "EVisionKeyboardController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
EVisionKeyboardController::EVisionKeyboardController(hid_device* dev_handle, const char* path)
|
||||
EVisionKeyboardController::EVisionKeyboardController(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
EVisionKeyboardController::~EVisionKeyboardController()
|
||||
|
|
@ -30,6 +31,11 @@ std::string EVisionKeyboardController::GetDeviceLocation()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string EVisionKeyboardController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string EVisionKeyboardController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue