alien@lion.ecn.purdue.edu (Yin Chan) (03/11/91)
What is the best way to detect a click of the mouse? Helps will be appreciated. Thanks. Yin
mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (03/12/91)
> What is the best way to detect a click of the mouse?
Select for ButtonPress events on your window. If by "click" you mean a
press and a release, ask for ButtonRelease as well. If it's important
that the pointer not move (or not move much) between the press and the
release, ask for MotionNotify as well, and check the coordinates.
der Mouse
old: mcgill-vision!mouse
new: mouse@larry.mcrcim.mcgill.edu