Mouse events?

Hello,

I’m currently trying to draw a curve on a 2D plots to fit with maximums
I’m pretty sure, that I could do it faster, than my fitting program if I was able to get the positions (xbin,ybin) of the mouse when I press enter.

Does it exist something to get the position of the mouse on a plot ?
I tried to be clear,… tell me if not.

Cheers,
Marco

May be something similar (simpler) to what is done here:
root.cern.ch/doc/master/mandelbrot_8C.html