How to record the latest response and not the initial key press? #1632
-
Hi everyone,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @prashantig25, you can do this by modifying the plugin. I would start by changing the plugin name and plugin file name to something like 'canvas-multiple-keyboard-response'. Then, you can change the var response = {
rt: [],
key: []
}; Then, in the // only record the first response
if (response.key == null) {
response = info;
} And instead, you want to add the response.rt.push(info.rt);
response.key.push(info.key); I think that's all you have to do, but I haven't tested this... Let us know if this works, and if you have any follow-up questions. EDIT: Also, when the keyboard listener is started with |
Beta Was this translation helpful? Give feedback.
Hi @prashantig25, you can do this by modifying the plugin. I would start by changing the plugin name and plugin file name to something like 'canvas-multiple-keyboard-response'. Then, you can change the
response
object to be an object that holds arrays for thert
andkey
, instead of just single values (lines 81-84).Then, in the
after_response
function, you can remove these lines (117-120):And instead, you want to add the
key
andrt
value frominfo
(the current response) onto the rt and key arrays in theresponse
object: