Store name in GigabyteAorusLaptopController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-08 11:43:37 -05:00
parent 7d0db424ec
commit cba7c016d3
4 changed files with 25 additions and 26 deletions

View file

@ -32,11 +32,11 @@ static unsigned char argb_colour_index_data[2][2][2] =
{ 0x05, 0x07 }, } //G1 R1
};
GigabyteAorusLaptopController::GigabyteAorusLaptopController(hid_device* dev_handle, const hid_device_info& info)
GigabyteAorusLaptopController::GigabyteAorusLaptopController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
{
dev = dev_handle;
location = info.path;
version = "";
name = dev_name;
}
GigabyteAorusLaptopController::~GigabyteAorusLaptopController()
@ -44,6 +44,11 @@ GigabyteAorusLaptopController::~GigabyteAorusLaptopController()
hid_close(dev);
}
std::string GigabyteAorusLaptopController::GetNameString()
{
return(name);
}
std::string GigabyteAorusLaptopController::GetDeviceLocation()
{
return("HID: " + location);
@ -62,11 +67,6 @@ std::string GigabyteAorusLaptopController::GetSerialString()
return(StringUtils::wstring_to_string(serial_string));
}
std::string GigabyteAorusLaptopController::GetFirmwareVersion()
{
return(version);
}
void GigabyteAorusLaptopController::SetDirect(uint8_t brightness, RGBColor color)
{
/*---------------------------------------------------------*\