Store name in DarkProjectrKeyboardController to avoid setting it in detector
This commit is contained in:
parent
ea206235c5
commit
13e8f70438
4 changed files with 17 additions and 23 deletions
|
|
@ -28,9 +28,9 @@ void DetectDarkProjectKeyboardControllers(hid_device_info* info, const std::stri
|
|||
|
||||
if(dev)
|
||||
{
|
||||
DarkProjectKeyboardController* controller = new DarkProjectKeyboardController(dev, info->path);
|
||||
DarkProjectKeyboardController* controller = new DarkProjectKeyboardController(dev, info->path, name);
|
||||
RGBController_DarkProjectKeyboard* rgb_controller = new RGBController_DarkProjectKeyboard(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue