mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
move WebAudio keyboard RT seconds-to-ms conversion from audio-keyboard-response plugin to getKeyboardResponse
This commit is contained in:
parent
94a094f628
commit
fb2ad41224
@ -2337,7 +2337,7 @@ jsPsych.pluginAPI = (function() {
|
||||
}
|
||||
parameters.callback_function({
|
||||
key: key,
|
||||
rt: rt,
|
||||
rt: rt_ms,
|
||||
});
|
||||
|
||||
if (keyboard_listeners.includes(listener_id)) {
|
||||
|
@ -155,9 +155,6 @@ jsPsych.plugins["audio-keyboard-response"] = (function () {
|
||||
jsPsych.pluginAPI.cancelAllKeyboardResponses();
|
||||
|
||||
// gather the data to store for the trial
|
||||
if (context !== null && response.rt !== null) {
|
||||
response.rt = Math.round(response.rt * 1000);
|
||||
}
|
||||
var trial_data = {
|
||||
rt: response.rt,
|
||||
stimulus: trial.stimulus,
|
||||
|
Loading…
Reference in New Issue
Block a user