how to know the mouse coordinates

Rachid KHAZAZ rachiddelta at
Sun Nov 4 01:55:50 PST 2007

I advice you to use XLib, see the documentation :
  When you catch an event, for example a ButtonPress event will be sent when pressing any mouse button, the XButtonEvent struture will contain information like mouse coordinates, the pressed button, the window you are pressing on ....etc.
  Good Luck,

sri <sridhar.yerram at> a écrit :
  i used libxevie  to log key and mouse events .... but can i know the mouse coordinates 
can i get the information whether right or left mouse button is pressed.....

Thanks & Regards
sridhar gupta yerram _______________________________________________
xorg mailing list
xorg at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xorg mailing list