I just added a 3rd C file that reads the status of the mouse button. It follows the precedent log 6. Got mouse.
It tries to be reasonably clever but be careful, it's a quick and dirty hack, like the other files :-D
At least it reads the event source in a non-blocking way so the main program can poll the buttons at the desired state.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.