Store name in DarkProjectrKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse committed 2025-08-06 11:27:37 -05:00
1 parent ea206235c5
commit 13e8f70438
4 files changed
+17 -23

No files matched your search

@@ -28,9 +28,9 @@ void DetectDarkProjectKeyboardControllers(hid_device_info* info, const std::stri
if(dev)
{
DarkProjectKeyboardController* controller = new DarkProjectKeyboardController(dev, info->path);
DarkProjectKeyboardController* controller = new DarkProjectKeyboardController(dev, info->path, name);
RGBController_DarkProjectKeyboard* rgb_controller = new RGBController_DarkProjectKeyboard(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}