-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unwatch ? #4
Comments
Well, if there's a watch there should be an unwatch. I'll add one. |
Hi, I'd also like to see an "unwatch" if its at all possible. Many Thanks. |
I'm currently looking into this. In order for unwatch to function correctly onoff will have to use EPOLL rather than POLL to detect input changes. POLL is currently used. With EPOLL is would also be possible to use one thread to watch all inputs rather than one thread per input as is currently the case. unwatch should be available in the not to distant future! |
This issue hasn't been forgotten, it's about 80% implemented. The last 20% will probably take as long to implement as the first 80! |
As long as this EPOLL doesn't breake the interrupt like nature of the library, it's ok. |
The interrupt like nature will also be available with EPOLL. |
onoff v0.2.0 has unwatch and unwatchAll methods. |
Hi,
Is there a way to "unwatch" the inputs?
The things is, I want to watch 5 buttons and when one is pressed, no others should be able to press there buttons.
The text was updated successfully, but these errors were encountered: