Store name in InstantMouseController to avoid setting it in detector
This commit is contained in:
parent
d5f8e2cac9
commit
0bdf600409
4 changed files with 15 additions and 15 deletions
|
|
@ -21,9 +21,9 @@ void DetectInstantMouseControllers(hid_device_info* info, const std::string& nam
|
|||
|
||||
if(dev)
|
||||
{
|
||||
InstantMouseController* controller = new InstantMouseController(dev, *info);
|
||||
InstantMouseController* controller = new InstantMouseController(dev, *info, name);
|
||||
RGBController_InstantMouse* rgb_controller = new RGBController_InstantMouse(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue