on https://github.com/nonolith/libusb/blob/master/examples/hotplug.c and https://github.com/ToadKing/wii-u-gc-adapter/blob/master/wii-u-gc-adapter.c