Use HID path for Location on NZXT Kraken controller

This commit is contained in:
Adam Honse
2020-10-05 00:05:18 -05:00
parent e82b251bae
commit e4229aae47
4 changed files with 13 additions and 4 deletions

View File

@@ -27,9 +27,10 @@ static RGBColor ToLogoColor(RGBColor rgb)
return ToRGBColor(RGBGetGValue(rgb), RGBGetRValue(rgb), RGBGetBValue(rgb));
}
NZXTKrakenController::NZXTKrakenController(hid_device* dev_handle)
NZXTKrakenController::NZXTKrakenController(hid_device* dev_handle, const char* path)
{
dev = dev_handle;
dev = dev_handle;
location = path;
/*-----------------------------------------------------*\
| Get the firmware version |
@@ -47,6 +48,11 @@ std::string NZXTKrakenController::GetFirmwareVersion()
return firmware_version;
}
std::string NZXTKrakenController::GetLocation()
{
return(location);
}
void NZXTKrakenController::UpdateStatus()
{
unsigned char usb_buf[64];