mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
Some mice have a separate hid interface for configuring the advanced features. It occurs that this is a common enough use case to be handled directly by libratbag-hidraw instead of having a per-device quirk. The idea is to allow opening the sibling hidraw devices during .probe() and to give a matching callback. If the callback succeeds, then the hidraw node will be used. With this, one device might be opened several times, this has to be fixed in a separate commit. Fixes issue #19 Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>