Recording keyboard input while response choice is set to NO_Keys #1990
Unanswered
samuelcpsych
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @samuelcpsych, What about using the var trial = {
type: 'image-keyboard-response',
stimulus: 'image.png',
trial_duration: 4000,
response_ends_trial: false,
choices: [' ']
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to record the pressing of the space key in image-keyboard-response trials. The reason for not just enabling it in the plugin (and defining the choices with e.g. ALL_KEYS), is that I want to show every stimulus only for a specific number of seconds without any influence on the exposure duration by the participants. Recording the key input is crucial because in one condition I want to increase the attention toward the duration of stimuli exposure - so the recording of keyboard responses should just help to insure that participants followed the instructions.
Since I could not make it work inside the plugin, my current, very simple workaround is:
The problem with this solution is that I can only count the number of "key-up" events without having any information about the key-press duration or about the trial in which the key was being pressed.
I am looking forward for any help or ideas on this problem! Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions