Das Keyboard version check and udev rules
Commits squashed and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
parent
ae4857e24e
commit
029a04cee8
5 changed files with 147 additions and 38 deletions
|
|
@ -48,11 +48,19 @@ void DetectDasKeyboardControllers(hid_device_info *info_in, const std::string &n
|
|||
|
||||
if(dev)
|
||||
{
|
||||
DasKeyboardController* controller = new DasKeyboardController(dev, info->path);
|
||||
RGBController_DasKeyboard* rgb_controller = new RGBController_DasKeyboard(controller);
|
||||
rgb_controller->name = name;
|
||||
DasKeyboardController* controller = new DasKeyboardController(dev, info->path);
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
if(controller->GetLayoutString() == "NONE")
|
||||
{
|
||||
delete controller;
|
||||
}
|
||||
else
|
||||
{
|
||||
RGBController_DasKeyboard *rgb_controller = new RGBController_DasKeyboard(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
} /* DetectDasKeyboardControllers() */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue