Store name in DuckyKeyboardController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-07 11:17:54 -05:00
parent a8500a2a8a
commit a73a879238
4 changed files with 16 additions and 8 deletions

View file

@ -28,9 +28,9 @@ void DetectDuckyKeyboardControllers(hid_device_info* info, const std::string& na
if(dev)
{
DuckyKeyboardController* controller = new DuckyKeyboardController(dev, info->path, info->product_id);
DuckyKeyboardController* controller = new DuckyKeyboardController(dev, info->path, info->product_id, name);
RGBController_DuckyKeyboard* rgb_controller = new RGBController_DuckyKeyboard(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
} /* DetectDuckyKeyboardControllers() */