You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We filter devices in the postprocessing after enumeration. But it would make sense to define blacklist entries before enumeration. This makes als sense when we think about hot-plugging.
We currently use the following criteria:
VID/PID to filter a few problematic devices
Usage-Table/Usage to filter out whole device categories like mouses, joysticks and gamepads
Bus-Type to filter out all embedded (SPI/I2C) laptop devices
There is also one case where we use the interface number, but it seems this is only, because at that time Usage-Table/Usage detection wasn't reliable.
Knowing the codebase, I must say that to implement (early) filtering for each criteria will be challenging, e.g.: it is impossible to get the usage_pages/usages of the device with libusb backend w/o opening the device, which is so much for "early" filtering.
I believe on all (not sure about macOS - that one is a bit different) platforms, having an early filter for vid/pid only is simple-enough and probably should be our first step towards that direction.
But that is a different effort, and would definitely need an implementation on all platforms.
Originally posted by @Youw in #575 (comment)
The text was updated successfully, but these errors were encountered: