mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
change key_press to response in html-keyboard-response plugin #638
This commit is contained in:
parent
fe5f14dae4
commit
3580b29767
@ -22,7 +22,7 @@ In addition to the [default data collected by all plugins](/overview/plugins#dat
|
||||
|
||||
| Name | Type | Value |
|
||||
| --------- | ------- | ---------------------------------------- |
|
||||
| key_press | string | Indicates which key the subject pressed. |
|
||||
| response | string | Indicates which key the subject pressed. |
|
||||
| rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the stimulus first appears on the screen until the subject's response. |
|
||||
| stimulus | string | The HTML content that was displayed on the screen. |
|
||||
|
||||
|
@ -89,9 +89,9 @@ jsPsych.plugins["html-keyboard-response"] = (function() {
|
||||
|
||||
// gather the data to store for the trial
|
||||
var trial_data = {
|
||||
"rt": response.rt,
|
||||
"stimulus": trial.stimulus,
|
||||
"key_press": response.key
|
||||
rt: response.rt,
|
||||
stimulus: trial.stimulus,
|
||||
response: response.key
|
||||
};
|
||||
|
||||
// clear the display
|
||||
|
Loading…
Reference in New Issue
Block a user