[open] Collecting multiple mouse clicks
Hello fellows! I bug you with another request..
I have a simple experiment in which participants are required to click the left or right mouse button according to where a stimulus appears on screen. Presentation of the stimulus is repeated several times in the experiment with an inter-trial interval of 60 seconds, during which nothing appears on screen, but subjects can still click the mouse buttons. I would like to collect the number of these additional mouse clicks and possibly the latency of each of them (i.e. the interval between the actual response when the stimulus was present and each additional click). I guess I can't use a 'response collection' item and I would have to go with some inline coding. However, I couldn't figure out a way to do this..
Thank you very much
Paolo
Comments
Hi Paolo,
I think, you will find this discussion here quite interesting:
It is not entirely identical with your question, but still quite easy to adapt (it does even more that you probably need!).
Basically, what you have to do is replacing all occurrences of "key" with "mouse" (of course it takes a little more to make it work) and to adapt the duration of the while loop.
Pygameshould have all functions you will need, so you can also have a look on their documentation. I am sure you can figure it out, if not just ask again.Good luck,
Eduard