Currently, the behavioural output of the app saves reaction time, key pressed, and stimulus filename, but not the important measure of whether the user pressed the right key according to the rules of the experiment.
This has not been implemented yet due to the fact that we are relying on the jsPsych image-keyboard-response plugin to handle collecting keyboard input, which doesn't accept any 'correct' keys as parameters and treats all keys the same.
The best way to go about implementing this would probably be to extend the image-keyboard-response and callback-image-display plugins to, in addition to their current parameters, accept a 'stimulus_type' parameter and a 'correct_response' parameter. The plugin should then return 'stimulus_type' and 'correct' in the jsPsych.data object.
Currently, the behavioural output of the app saves reaction time, key pressed, and stimulus filename, but not the important measure of whether the user pressed the right key according to the rules of the experiment.
This has not been implemented yet due to the fact that we are relying on the jsPsych image-keyboard-response plugin to handle collecting keyboard input, which doesn't accept any 'correct' keys as parameters and treats all keys the same.
The best way to go about implementing this would probably be to extend the image-keyboard-response and callback-image-display plugins to, in addition to their current parameters, accept a 'stimulus_type' parameter and a 'correct_response' parameter. The plugin should then return 'stimulus_type' and 'correct' in the
jsPsych.data
object.