mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-18 19:46:27 -04:00
Use HID path for Location on NZXT Kraken controller
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user