Store name in HyperXMouseControllers to avoid setting it in detectors

This commit is contained in:
Adam Honse
2025-08-10 21:17:20 -05:00
parent 0c0ffe7f5c
commit ca554d9ef6
16 changed files with 148 additions and 121 deletions

View File

@@ -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];