Store name in MSIOptixController to avoid setting it in detector
This commit is contained in:
parent
2dd013a0a0
commit
b13ca818bb
4 changed files with 17 additions and 18 deletions
|
|
@ -13,11 +13,11 @@
|
|||
#include "MSIOptixController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
MSIOptixController::MSIOptixController(hid_device* dev_handle, const hid_device_info& info)
|
||||
MSIOptixController::MSIOptixController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
version = "";
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
MSIOptixController::~MSIOptixController()
|
||||
|
|
@ -30,6 +30,11 @@ std::string MSIOptixController::GetDeviceLocation()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string MSIOptixController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string MSIOptixController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
|
@ -43,11 +48,6 @@ std::string MSIOptixController::GetSerialString()
|
|||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
std::string MSIOptixController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
unsigned char MSIOptixController::GetMysteriousFlag(unsigned char mode_value)
|
||||
{
|
||||
switch(mode_value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue