Is there any equivalent function of event.waitKeys but for the mouse, and more specifically for the isPressedIn function? I would like to halt everything until a left click is pressed inside a specific area (a pic).
I’ve been relying on a while loop approach which draws the stimulus and then check if the mouse has been pressed inside the pic. The problem with this approach is that sometimes I’ve to click several time the image for the click to be detected.
Is there a better approach?