event.waitKeys() for mouse?

What I wanna design is…
The design which trial terminates when the participant presses a button(imagestim) correctly! I wanna wait until the participant clicks the right button.

How should I code the function of event.waitKeys() for mouse track?
I thought event.waitKeys() is for keyboard response…so…I’m curious about the mouse tracking design.

Hi there Chris,

The PsychoPy documentation will be helpful for you here:

https://www.psychopy.org/api/event.html

You’ll want to look at the functions in the event.Mouse class, getPressed seems to be what you’re looking for.

Cheers,

Martin.