Open ghost opened 7 years ago
As far as I know, kevent is not available on Linux, so I don't know much about it. I would prefer using some kind of event-based waiting instead of polling, but I couldn't figure out how to do it with SANE.
I think there is an external library for Linux support: https://github.com/mheily/libkqueue but I'm not sure how it would work with sane directly... the idea I had in my head was to watch the file descriptors via libusb for button presses and then fire off scripts as needed but I'm not sure if that would block sane or not.
On 11 April 2017 at 13:38, Alex Busenius notifications@github.com wrote:
As far as I know, kevent is not available on Linux, so I don't know much about it. I would prefer using some kind of event-based waiting instead of polling, but I couldn't figure out how to do it with SANE.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abusenius/insaned/issues/7#issuecomment-293377431, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHuL97NPKbRmrCNSAF0jCZRyjxSiE7Cks5ru9bHgaJpZM4M4S2c .
Works great! Thanks for writing this up. I was thinking about doing the same sort of thing but using kevent instead of polling, have you given that idea any thought before?