Store name in SkyloongController to avoid setting it in detector
This commit is contained in:
parent
46d935c1a4
commit
517287117b
4 changed files with 19 additions and 11 deletions
|
|
@ -33,9 +33,9 @@ void DetectSkyloongGK104Pro(hid_device_info* info, const std::string& name)
|
|||
hid_device* dev = hid_open_path(info->path);
|
||||
if(dev)
|
||||
{
|
||||
SkyloongGK104ProController* controller = new SkyloongGK104ProController(dev, info->path);
|
||||
SkyloongGK104ProController* controller = new SkyloongGK104ProController(dev, info->path, name);
|
||||
RGBController_SkyloongGK104Pro* rgb_controller = new RGBController_SkyloongGK104Pro(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue