Store name in HyperXMicrophoneController to avoid setting it in detector
This commit is contained in:
parent
0eee6044b2
commit
0c0ffe7f5c
4 changed files with 13 additions and 5 deletions
|
|
@ -37,9 +37,8 @@ void DetectHyperXMicrophoneControllers(hidapi_wrapper wrapper, hid_device_info*
|
|||
|
||||
if(dev)
|
||||
{
|
||||
HyperXMicrophoneController* controller = new HyperXMicrophoneController(wrapper, dev, info->path);
|
||||
HyperXMicrophoneController* controller = new HyperXMicrophoneController(wrapper, dev, info->path, name);
|
||||
RGBController_HyperXMicrophone *rgb_controller = new RGBController_HyperXMicrophone(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue