I’m writing an experiment, letting subjects make response by pressing a key.
The interaction process (in 1 routine) is like this:
(1) In the beginning of a trial, stimulus opacity is set invisible.
(2) when subject presses a specified key down, the stimulus gets visible.
As long as the key is not released, the stimulus continuously be visible.
The subject needs to hold that key down for a while to discriminate the blurred stimulus.
(3) When the subject releases that key, the stimulus gets changed.
(4) Then the subject can report his/her discrimination result.
I tried to use the ‘waitRelease’ parameter in keyboard checker objects in codes.
If “waitRelease= False”, I can detect that key is pressed down at the first time, change the stimulus opacity. After that, if I use another keyboard checker with “waitRelease= True” for key releasing, that doesn’t work. Because, that’s for a complete key pressing event, from pressing to releasing, not from the status key is already pressed down.
Hope somebody can give me some clues.