[solved] Question on mouse response with inline script
In an old thread (http://www.cogsci.nl/forum/index.php?p=/discussion/143/open-how-do-i-collect-the-keyboard_response-after-a-stimulus-disappears/p1) I found this really nice piece of code, which enables measuring keyboard response time from the onset of a stimulus.
This is exactly what I need for my experiment and it works perfectly, but I would like to use a mouse response, instead of a keyboard response. I tried to change the code, but I was not able to do so
Precisely, I do not know how this command should be for the mouse response:
resp, time = my_keyboard.get_key(timeout=timeout)
and also this part of the code:
response = my_keyboard.to_chr(resp)
Sorry, if this is naive (I am not very experienced in programming and do not understand everything in the documentation), but I did not find the to_chr() function in either the keyboard or mouse response documentation, what does it even do?