Add optional HID device hotplug support (requires https://gitlab.com/OpenRGBDevelopers/hidapi-hotplug)

This commit is contained in:
Adam Honse
2026-01-22 13:02:56 -06:00
parent e1b84ba874
commit e8495115b5
33 changed files with 1401 additions and 212 deletions

View File

@@ -26,7 +26,7 @@ HYTEKeyboardController::~HYTEKeyboardController()
std::string HYTEKeyboardController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HYTEKeyboardController::GetDeviceName()

View File

@@ -32,7 +32,7 @@ HyperXAlloyElite2Controller::~HyperXAlloyElite2Controller()
std::string HyperXAlloyElite2Controller::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXAlloyElite2Controller::GetNameString()

View File

@@ -27,7 +27,7 @@ HyperXAlloyOrigins60and65Controller::~HyperXAlloyOrigins60and65Controller()
std::string HyperXAlloyOrigins60and65Controller::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXAlloyOrigins60and65Controller::GetNameString()

View File

@@ -30,7 +30,7 @@ HyperXAlloyOriginsController::~HyperXAlloyOriginsController()
std::string HyperXAlloyOriginsController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXAlloyOriginsController::GetNameString()

View File

@@ -42,7 +42,7 @@ HyperXAlloyOriginsCoreController::~HyperXAlloyOriginsCoreController()
std::string HyperXAlloyOriginsCoreController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXAlloyOriginsCoreController::GetNameString()

View File

@@ -37,7 +37,7 @@ HyperXMicrophoneController::~HyperXMicrophoneController()
std::string HyperXMicrophoneController::GetDeviceLocation()
{
return(location);
return("HID: " + location);
}
std::string HyperXMicrophoneController::GetNameString()

View File

@@ -37,7 +37,7 @@ HyperXMicrophoneV2Controller::~HyperXMicrophoneV2Controller()
std::string HyperXMicrophoneV2Controller::GetDeviceLocation()
{
return(location);
return("HID: " + location);
}
std::string HyperXMicrophoneV2Controller::GetNameString()

View File

@@ -27,7 +27,7 @@ HyperXPulsefireFPSProController::~HyperXPulsefireFPSProController()
std::string HyperXPulsefireFPSProController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXPulsefireFPSProController::GetNameString()

View File

@@ -27,7 +27,7 @@ HyperXPulsefireHasteController::~HyperXPulsefireHasteController()
std::string HyperXPulsefireHasteController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXPulsefireHasteController::GetNameString()

View File

@@ -27,7 +27,7 @@ HyperXPulsefireSurgeController::~HyperXPulsefireSurgeController()
std::string HyperXPulsefireSurgeController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXPulsefireSurgeController::GetNameString()

View File

@@ -28,7 +28,7 @@ HyperXMousematController::~HyperXMousematController()
std::string HyperXMousematController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string HyperXMousematController::GetNameString()

View File

@@ -54,7 +54,7 @@ unsigned int JGINYUEInternalUSBController::GetZoneCount()
std::string JGINYUEInternalUSBController::GetDeviceLocation()
{
return("HID:" + location);
return("HID: " + location);
}
std::string JGINYUEInternalUSBController::GetDeviceName()

View File

@@ -68,7 +68,7 @@ unsigned int JGINYUEInternalUSBV2Controller::GetZoneCount()
std::string JGINYUEInternalUSBV2Controller::GetDeviceLocation()
{
return("HID:" + location);
return("HID: " + location);
}
std::string JGINYUEInternalUSBV2Controller::GetDeviceName()

View File

@@ -28,7 +28,7 @@ PatriotViperMouseController::~PatriotViperMouseController()
std::string PatriotViperMouseController::GetLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string PatriotViperMouseController::GetName()

View File

@@ -26,12 +26,12 @@ WushiL50USBController::~WushiL50USBController()
std::string WushiL50USBController::getName()
{
return name;
return(name);
}
std::string WushiL50USBController::getLocation()
{
return location;
return("HID: " + location);
}
std::string WushiL50USBController::GetSerialString()

View File

@@ -43,7 +43,7 @@ ZETBladeOpticalController::~ZETBladeOpticalController()
std::string ZETBladeOpticalController::GetDeviceLocation()
{
return("HID " + location);
return("HID: " + location);
}
std::string ZETBladeOpticalController::GetNameString()