Clean up Linux OpenRazer code to match Windows and break out device list into a shared header file

This commit is contained in:
Adam Honse 2020-01-25 23:54:32 -06:00
parent 1a07aee7a6
commit c4d2f72df1
7 changed files with 1415 additions and 2155 deletions

View file

@ -102,7 +102,7 @@ void DetectOpenRazerControllers(std::vector<RGBController*> &rgb_controllers)
RGBController_OpenRazer * razer_rgb = new RGBController_OpenRazer(device_string);
if(razer_rgb->device != -1)
if(razer_rgb->device_index != -1)
{
rgb_controllers.push_back(razer_rgb);
}