How could I watch the mouse for special events, like when the scroll wheel is pushed?
E.g. When the mouse wheel is pressed, the shell would execute echo "hello".
The OS is Linux.
Is there some API in X.org that I can use?
Printable View
How could I watch the mouse for special events, like when the scroll wheel is pushed?
E.g. When the mouse wheel is pressed, the shell would execute echo "hello".
The OS is Linux.
Is there some API in X.org that I can use?
You're trying to get mouse events into a console program?
Ah, I don't know, I just want it to run on the background and perform an action whenever the wheel mouse is clicked.
Any ideas?