Skip to content
Discussion options

You must be logged in to vote

EDIT: Sorry, one last step that I forgot to mention. At the end of the trial you have to clear the keyboard listener so that it doesn't continue running during subsequent trials. You can do this in the end_trial function using the jsPsych.pluginAPI.cancelAllKeyboardResponses() function. Or if you assign getKeyboardResponse to a variable (e.g. listener_id) then you can clear that one specifically with jsPsych.pluginAPI.cancelKeyboardResponse(listener_id).


Hi @AlecMRogers, sorry for the slow response! Not sure if this is still useful...

Unfortunately there's no other option (that I know of) to combine button and keyboard responses - I think you'll have to add one of the response options to…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AlecMRogers
Comment options

@AlecMRogers
Comment options

@becky-gilbert
Comment options

Answer selected by AlecMRogers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants