Store name in InstantMouseController to avoid setting it in detector
This commit is contained in:
parent
d5f8e2cac9
commit
0bdf600409
4 changed files with 15 additions and 15 deletions
|
|
@ -13,12 +13,12 @@
|
|||
#include "InstantMouseController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
InstantMouseController::InstantMouseController(hid_device* dev_handle, const hid_device_info& info)
|
||||
InstantMouseController::InstantMouseController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
pid = info.product_id;
|
||||
version = "";
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
InstantMouseController::~InstantMouseController()
|
||||
|
|
@ -31,6 +31,11 @@ std::string InstantMouseController::GetDeviceLocation()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string InstantMouseController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string InstantMouseController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
|
@ -49,11 +54,6 @@ uint16_t InstantMouseController::GetPID()
|
|||
return pid;
|
||||
}
|
||||
|
||||
std::string InstantMouseController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
void InstantMouseController::SendColor(RGBColor color)
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue