Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

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.


  • edited February 2017


    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?


    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

Sign In or Register to comment.