Skip to content

feat: add keypad numbers to correct answer#53

Open
suivo2001 wants to merge 3 commits intomainfrom
keypad-answer
Open

feat: add keypad numbers to correct answer#53
suivo2001 wants to merge 3 commits intomainfrom
keypad-answer

Conversation

@suivo2001
Copy link
Collaborator

The data json changes a bit with this.
The code field, which was 1,2,3 corresponding to the correct answer is gone, and that number is in key_answer now. The key_answer from before, which was 48,49,50 corresponding to the right number key is also gone.

@github-actions
Copy link

github-actions bot commented Jul 20, 2021

Visit the preview URL for this PR (updated for commit 8e0a318):

https://borton-task-msit--pr53-keypad-answer-hemeb0wc.web.app

(expires Thu, 05 Aug 2021 17:40:04 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@suivo2001 suivo2001 requested a review from mcmcgrath13 July 20, 2021 17:29
@suivo2001
Copy link
Collaborator Author

probably not going to merge this before all the baylor stuff is done.


// clear keyboard listener
jsPsych.pluginAPI.cancelAllKeyboardResponses();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also save the key_answer with the trial_data to be safe

@suivo2001 suivo2001 requested a review from mcmcgrath13 July 29, 2021 18:02
"stimulus": trial.stimulus,
"key_press": info.key
"key_press": info.key,
"key_answer": trial.key_answer
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcmcgrath13 is this what you meant with the above comment?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants