I'm trying to make a simple piano keyboard for my programming class. I've made it in pygame because it's nice and simple to use. I've managed to get it working by making a mouse rect and individual rects for each note on the piano and having the note play by linking it to a mousebuttondown event. So it's working pretty good but I'll be demonstrating it on a smartboard and I was wondering if I could make it multiplayer. The problem is I can't work out a way that two people can play at the same time because obviously there's only one mouse (which is detected by the player tapping on screen) and therefore one mouse.get_pos() for the rect collision detection. If anyone can suggest a work around that'd be cool!
Thanks for the help
-Laura
The MOUSEBUTTONDOWN event has two attributes:

pos
button

If you use event.pos instead of mouse.get_pos() you should be able to pick up the coordinates where the click occurred even if you have more than one mouse.
Multiple mouse position