How to click on a shape in a go/no-go experiment

Hello,


I would like to present stimuli to a participant which would have to click on the Screen, on the defined shape to be correct and to go to the next trial.



Is there a function which could help me to define is the mouse click is inside the shape, or should I compare the coordinates of the shape and the mouse click?


Thank you,


Louise