Store name in OKSKeyboardController to avoid setting it in detector
This commit is contained in:
parent
e418aa7f95
commit
2c630a5218
4 changed files with 54 additions and 47 deletions
|
|
@ -27,9 +27,9 @@ void DetectOKSKeyboardControllers(hid_device_info* info, const std::string& name
|
|||
|
||||
if(dev)
|
||||
{
|
||||
OKSKeyboardController* controller = new OKSKeyboardController(dev, info->path, info->product_id);
|
||||
OKSKeyboardController* controller = new OKSKeyboardController(dev, info->path, info->product_id, name);
|
||||
RGBController_OKSKeyboard* rgb_controller = new RGBController_OKSKeyboard(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
} /* DetectOKSKeyboardControllers() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue