mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
fix representation of key
This commit is contained in:
parent
08ab729557
commit
3df3d64712
@ -274,7 +274,7 @@ jsPsych.plugins["virtual-chinrest"] = (function () {
|
||||
// wait for a spacebar to begin the animations
|
||||
jsPsych.pluginAPI.getKeyboardResponse({
|
||||
callback_function: startBall,
|
||||
valid_responses: ['space'],
|
||||
valid_responses: [' '],
|
||||
rt_method: 'performance',
|
||||
allow_held_keys: false,
|
||||
persist: false
|
||||
@ -284,7 +284,7 @@ jsPsych.plugins["virtual-chinrest"] = (function () {
|
||||
function startBall() {
|
||||
ball_position_listener = jsPsych.pluginAPI.getKeyboardResponse({
|
||||
callback_function: recordPosition,
|
||||
valid_responses: ['space'],
|
||||
valid_responses: [' '],
|
||||
rt_method: 'performance',
|
||||
allow_held_keys: false,
|
||||
persist: true
|
||||
|
Loading…
Reference in New Issue
Block a user