mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-06-01 18:44:49 -04:00
Store name in RedSquareControllers to avoid setting it in detectors
This commit is contained in:
@@ -15,10 +15,11 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
RedSquareKeyroxController::RedSquareKeyroxController(hid_device *dev_handle, const hid_device_info &info, int variant)
|
||||
RedSquareKeyroxController::RedSquareKeyroxController(hid_device *dev_handle, const hid_device_info &info, int variant, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
name = dev_name;
|
||||
this->variant = variant;
|
||||
}
|
||||
|
||||
@@ -37,6 +38,11 @@ std::string RedSquareKeyroxController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string RedSquareKeyroxController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string RedSquareKeyroxController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_wchar[128];
|
||||
|
||||
Reference in New Issue
Block a user