Mouse click response code?

Hi all, 


This seems an absurdly simple problem, and I'm wondering if anyone else has written code that we could use. I have a rating experiment that I've been asked to program, where the participant views a facial expression and then has to classify it (happy, sad, etc), then rate the expression on a scale. My colleagues particularly want the participant to be able to click on a response for each task, as they had a similar experiment previously programmed in Superlab to do this. 


I have found bits of code here and there, but nothing that really does the job. Surely someone else, some time, has solved this problem? 


Thanks


Deborah.