Store name in KeychronKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-11 18:29:59 -05:00
parent ca73941e5d
commit a1f144daf2
4 changed files with 15 additions and 14 deletions

View File

@@ -29,9 +29,9 @@ void DetectKeychronKeyboardControllers(hid_device_info* info, const std::string&
if(dev)
{
KeychronKeyboardController* controller = new KeychronKeyboardController(dev, *info);
KeychronKeyboardController* controller = new KeychronKeyboardController(dev, *info, name);
RGBController_KeychronKeyboard* rgb_controller = new RGBController_KeychronKeyboard(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}