mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-10 08:07:56 -05:00
Store name in HyperXMouseControllers to avoid setting it in detectors
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
HyperXPulsefireRaidController::HyperXPulsefireRaidController(hid_device* dev_handle, const hid_device_info& info)
|
||||
HyperXPulsefireRaidController::HyperXPulsefireRaidController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
version = "";
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
HyperXPulsefireRaidController::~HyperXPulsefireRaidController()
|
||||
@@ -32,6 +32,11 @@ std::string HyperXPulsefireRaidController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string HyperXPulsefireRaidController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string HyperXPulsefireRaidController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
@@ -45,11 +50,6 @@ std::string HyperXPulsefireRaidController::GetSerialString()
|
||||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
std::string HyperXPulsefireRaidController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
void HyperXPulsefireRaidController::SendColors(std::vector<RGBColor> colors)
|
||||
{
|
||||
unsigned char usb_buf[HYPERX_PULSFIRE_RAID_PACKET_DATA_LENGTH];
|
||||
|
||||
Reference in New Issue
Block a user