Store name in OKSKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse committed 2025-08-14 19:06:29 -05:00
1 parent e418aa7f95
commit 2c630a5218
4 files changed
+54 -47

No files matched your search

@@ -27,9 +27,9 @@ void DetectOKSKeyboardControllers(hid_device_info* info, const std::string& name
if(dev)
{
OKSKeyboardController* controller = new OKSKeyboardController(dev, info->path, info->product_id);
OKSKeyboardController* controller = new OKSKeyboardController(dev, info->path, info->product_id, name);
RGBController_OKSKeyboard* rgb_controller = new RGBController_OKSKeyboard(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
} /* DetectOKSKeyboardControllers() */