Store name in AOCKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-03 21:33:56 -05:00
parent 3dc2453deb
commit 5799ea8160
4 changed files with 12 additions and 5 deletions

View file

@ -34,9 +34,8 @@ void DetectAOCKeyboardControllers(hid_device_info* info, const std::string& name
if(dev)
{
AOCKeyboardController* controller = new AOCKeyboardController(dev, info->path);
AOCKeyboardController* controller = new AOCKeyboardController(dev, info->path, name);
RGBController_AOCKeyboard* rgb_controller = new RGBController_AOCKeyboard(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}