[WIP][next] Add optional HID device hotplug support (requires hidapi hotplug support)

This change integrates @k1-801's hotplug work into the next branch on top of DetectionManager. It requires that the system hidapi be replaced with a version that supports hotplugging. Discussion is ongoing on how exactly to accomplish this as it is unlikely that upstream hidapi will merge the hotplug support we need anytime soon. The likely path is that we will distribute our own hidapi fork called hidapi-hotplug (already forked on GitLab/GitHub under the OpenRGBDevelopers organization) which we can then create distribution-specific packages for. The big question is whether we rename the actual library binaries or just the package name. To enable hotplug for this branch, you need to have the hotplug-enabled hidapi installed on your system and then define HID_HOTPLUG_ENABLED=1 in the qmake project to build in support for it.

I made an AUR package for hidapi-hotplug for testing: https://aur.archlinux.org/packages/hidapi-hotplug-git

Demo video: https://www.youtube.com/watch?v=8QTcOJ1HQoI

Closes #2485

Replaces !1963 (closed)

Edited by Adam Honse

Merge request reports

Loading