mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 22:45:55 -04:00
Add optional HID device hotplug support (requires https://gitlab.com/OpenRGBDevelopers/hidapi-hotplug)
This commit is contained in:
@@ -31,7 +31,7 @@ AOCKeyboardController::~AOCKeyboardController()
|
||||
|
||||
std::string AOCKeyboardController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string AOCKeyboardController::GetDeviceName()
|
||||
|
||||
@@ -27,7 +27,7 @@ AOCMouseController::~AOCMouseController()
|
||||
|
||||
std::string AOCMouseController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string AOCMouseController::GetDeviceName()
|
||||
|
||||
@@ -27,7 +27,7 @@ AOCMousematController::~AOCMousematController()
|
||||
|
||||
std::string AOCMousematController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string AOCMousematController::GetDeviceName()
|
||||
|
||||
@@ -23,7 +23,7 @@ CreativeSoundBlasterXG6Controller::~CreativeSoundBlasterXG6Controller()
|
||||
|
||||
std::string CreativeSoundBlasterXG6Controller::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string CreativeSoundBlasterXG6Controller::GetDeviceName()
|
||||
|
||||
@@ -44,7 +44,7 @@ FnaticStreakController::~FnaticStreakController()
|
||||
|
||||
std::string FnaticStreakController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string FnaticStreakController::GetNameString()
|
||||
|
||||
@@ -26,7 +26,7 @@ HYTEKeyboardController::~HYTEKeyboardController()
|
||||
|
||||
std::string HYTEKeyboardController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HYTEKeyboardController::GetDeviceName()
|
||||
|
||||
@@ -32,7 +32,7 @@ HyperXAlloyElite2Controller::~HyperXAlloyElite2Controller()
|
||||
|
||||
std::string HyperXAlloyElite2Controller::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXAlloyElite2Controller::GetNameString()
|
||||
|
||||
@@ -27,7 +27,7 @@ HyperXAlloyOrigins60and65Controller::~HyperXAlloyOrigins60and65Controller()
|
||||
|
||||
std::string HyperXAlloyOrigins60and65Controller::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXAlloyOrigins60and65Controller::GetNameString()
|
||||
|
||||
@@ -30,7 +30,7 @@ HyperXAlloyOriginsController::~HyperXAlloyOriginsController()
|
||||
|
||||
std::string HyperXAlloyOriginsController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXAlloyOriginsController::GetNameString()
|
||||
|
||||
@@ -42,7 +42,7 @@ HyperXAlloyOriginsCoreController::~HyperXAlloyOriginsCoreController()
|
||||
|
||||
std::string HyperXAlloyOriginsCoreController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXAlloyOriginsCoreController::GetNameString()
|
||||
|
||||
@@ -27,7 +27,7 @@ HyperXOrigins2_65Controller::~HyperXOrigins2_65Controller()
|
||||
|
||||
std::string HyperXOrigins2_65Controller::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXOrigins2_65Controller::GetNameString()
|
||||
|
||||
@@ -37,7 +37,7 @@ HyperXMicrophoneController::~HyperXMicrophoneController()
|
||||
|
||||
std::string HyperXMicrophoneController::GetDeviceLocation()
|
||||
{
|
||||
return(location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXMicrophoneController::GetNameString()
|
||||
|
||||
@@ -37,7 +37,7 @@ HyperXMicrophoneV2Controller::~HyperXMicrophoneV2Controller()
|
||||
|
||||
std::string HyperXMicrophoneV2Controller::GetDeviceLocation()
|
||||
{
|
||||
return(location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXMicrophoneV2Controller::GetNameString()
|
||||
|
||||
@@ -27,7 +27,7 @@ HyperXPulsefireFPSProController::~HyperXPulsefireFPSProController()
|
||||
|
||||
std::string HyperXPulsefireFPSProController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXPulsefireFPSProController::GetNameString()
|
||||
|
||||
@@ -27,7 +27,7 @@ HyperXPulsefireHasteController::~HyperXPulsefireHasteController()
|
||||
|
||||
std::string HyperXPulsefireHasteController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXPulsefireHasteController::GetNameString()
|
||||
|
||||
@@ -27,7 +27,7 @@ HyperXPulsefireSurgeController::~HyperXPulsefireSurgeController()
|
||||
|
||||
std::string HyperXPulsefireSurgeController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXPulsefireSurgeController::GetNameString()
|
||||
|
||||
@@ -28,7 +28,7 @@ HyperXMousematController::~HyperXMousematController()
|
||||
|
||||
std::string HyperXMousematController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXMousematController::GetNameString()
|
||||
|
||||
@@ -54,7 +54,7 @@ unsigned int JGINYUEInternalUSBController::GetZoneCount()
|
||||
|
||||
std::string JGINYUEInternalUSBController::GetDeviceLocation()
|
||||
{
|
||||
return("HID:" + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string JGINYUEInternalUSBController::GetDeviceName()
|
||||
|
||||
@@ -68,7 +68,7 @@ unsigned int JGINYUEInternalUSBV2Controller::GetZoneCount()
|
||||
|
||||
std::string JGINYUEInternalUSBV2Controller::GetDeviceLocation()
|
||||
{
|
||||
return("HID:" + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string JGINYUEInternalUSBV2Controller::GetDeviceName()
|
||||
|
||||
@@ -28,7 +28,7 @@ PatriotViperMouseController::~PatriotViperMouseController()
|
||||
|
||||
std::string PatriotViperMouseController::GetLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string PatriotViperMouseController::GetName()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -43,7 +43,7 @@ ZETBladeOpticalController::~ZETBladeOpticalController()
|
||||
|
||||
std::string ZETBladeOpticalController::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string ZETBladeOpticalController::GetNameString()
|
||||
|
||||
Reference in New Issue
Block a user