coroutines and pending keypresses problem
Hello everyone,
I have encountered the problem with using coroutines. If I want to use keyboard response (in go/nogo task) in coroutine,
pending keypresses don't get flushed. They are being carried over to the next trial, so a person who button-mashes "responds" to a number of trials consequently. Is there any solution for that? Maybe some inline script? Any help will be greatly appreciated.
I attach my experiment.
Comments
Hi,
In some cases on Mac OS and Linux, key presses are not flushed properly. This is a known issue with PyGame, a library used by OpenSesame. This actually happens on my own Ubuntu system too.
Are you using Mac OS or Linux? And, if so, could you verify in a simple experiment whether key presses are ever flushed at all?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!