Store name in TrustControllers to avoid setting it in detectors

This commit is contained in:
Adam Honse 2025-08-14 20:17:49 -05:00
parent 1bd9215a72
commit fcce668d66
7 changed files with 35 additions and 33 deletions

View file

@ -13,11 +13,11 @@
#include "StringUtils.h"
#include "TrustGXT114Controller.h"
TrustGXT114Controller::TrustGXT114Controller(hid_device* dev_handle, const hid_device_info& info)
TrustGXT114Controller::TrustGXT114Controller(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;
}
TrustGXT114Controller::~TrustGXT114Controller()
@ -30,6 +30,11 @@ std::string TrustGXT114Controller::GetDeviceLocation()
return("HID: " + location);
}
std::string TrustGXT114Controller::GetNameString()
{
return(name);
}
std::string TrustGXT114Controller::GetSerialString()
{
wchar_t serial_string[128];
@ -43,11 +48,6 @@ std::string TrustGXT114Controller::GetSerialString()
return(StringUtils::wstring_to_string(serial_string));
}
std::string TrustGXT114Controller::GetFirmwareVersion()
{
return(version);
}
bool TrustGXT114Controller::Test()
{
/*-----------------------------------------*\