Store name in HYTEKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-11 17:20:20 -05:00
parent 0269cdd068
commit d412ef5e17
4 changed files with 21 additions and 14 deletions

View File

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