Hi there!
I’ve been using Psychopy3 with Python 2 no problems.
But I’ve been thinking about making the move to Python 3, and I’m having this weird issue were event.getKeys is not registering keypresses at all!
If I run:
win = visual.Window([400,400])
core.wait(2)
response=event.getKeys()
print(response)
and hold down any key on my keyboard, response still registers as a empty list
Sorry if this seems like such a silly issue but I can’t figure out what’s going on!
EDIT:
I do feel silly! I wasn’t providing a key list to event.getKeys() to query. I just assumed that it would query all the keys without any arguments. The correct code would be:
win = visual.Window([400,400])
core.wait(2)
response=event.getKeys(None)
print(response)