mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-07-19 09:41:59 -04:00
Store name in ZETKeyboardController to avoid setting it in detector
This commit is contained in:
@@ -27,10 +27,11 @@ using namespace std::chrono_literals;
|
||||
static const unsigned int SKIP_INDICES[] = { 1, 17, 18, 19, 20, 75, 77, 78, 79, 83, 85, 96, 98, 100, 108, 109, 111, 112, 113, 116, 123, 125 };
|
||||
|
||||
|
||||
ZETBladeOpticalController::ZETBladeOpticalController(hid_device* dev_handle, const char* path)
|
||||
ZETBladeOpticalController::ZETBladeOpticalController(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
|
||||
effect_mode = ZET_BLADE_OPTICAL_MODE_STATIC;
|
||||
}
|
||||
@@ -45,6 +46,11 @@ std::string ZETBladeOpticalController::GetDeviceLocation()
|
||||
return("HID " + location);
|
||||
}
|
||||
|
||||
std::string ZETBladeOpticalController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string ZETBladeOpticalController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
||||
Reference in New Issue
Block a user