Remove WIN32 check around Razer ARGB detector, it is needed in Linux too

This commit is contained in:
Adam Honse 2021-02-10 01:02:45 +00:00
parent 1817d3ac4a
commit e20f7f3a44

View file

@ -81,7 +81,6 @@ void DetectRazerARGBControllers(hid_device_info* info, const std::string& name)
| Razer's ARGB controller uses two different interfaces, one for 90-byte Razer report packets and |
| one for 320-byte ARGB packets. Interface 0 for 90-byte and interface 1 for 320-byte. |
\*-------------------------------------------------------------------------------------------------*/
#ifdef _WIN32
hid_device* dev_interface_0 = nullptr;
hid_device* dev_interface_1 = nullptr;
hid_device_info* info_temp = info;
@ -117,9 +116,6 @@ void DetectRazerARGBControllers(hid_device_info* info, const std::string& name)
hid_close(dev_interface_0);
hid_close(dev_interface_1);
}
#else
DetectRazerControllers(info, name);
#endif
}
/*-----------------------------------------------------------------------------------------------------*\