Store name in KeychronKeyboardController to avoid setting it in detector
This commit is contained in:
parent
ca73941e5d
commit
a1f144daf2
4 changed files with 15 additions and 14 deletions
|
|
@ -29,9 +29,9 @@ void DetectKeychronKeyboardControllers(hid_device_info* info, const std::string&
|
|||
|
||||
if(dev)
|
||||
{
|
||||
KeychronKeyboardController* controller = new KeychronKeyboardController(dev, *info);
|
||||
KeychronKeyboardController* controller = new KeychronKeyboardController(dev, *info, name);
|
||||
RGBController_KeychronKeyboard* rgb_controller = new RGBController_KeychronKeyboard(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue