Hi,
I'm trying to use the Xlib library to detect a mouse button event in C. I'm using linux. I want to run a loop and exit this loop when a mouse button is pressed. It seems possible to me to wait for an event to happen but it it possible to compute something else while we're waiting?
I thought of something like :
do {
...
} while !(buttonstate1==pressed)
So my question is: is there a command to read the state (pressed or not) of the mouse button?
Regards