[solved] Keyboard Arrows for Selection
I'm trying to design a paradigm where a participant needs to rate a stimulus from a range of 1-5. This would be easy if it wasn't an fMRI, and as the case is such, I can't use mouse clicks. (We don't have an MRI compatible mouse)
A previous paradigm coded on E-Prime made use of a keyboard with 4 buttons. 2 of them were used to toggle left and right (to select options 1-5) and one key was used as a 'select' option.
I've seen the forms and the questionnaire templates, but all of them rely on single button/mouse clicks. How would I be able to build my desired kind of a paradigm? I'm not too familiar with Python either.
Comments
Hi Jacob,
This will indeed require a bit of Python coding, but nothing terribly complicated. Below you see an example of how you can adjust a 5-point scale with left/ right key presses, and accept by pressing space. The logic is explained in the code comments. You'll probably need to modify it a bit for your purpose, but it should get you started!
See also:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hey Sebastien,
Thanks a bunch!! Yes, I modified it a bit to suit the experiment, but on the whole its just perfect. Thanks a bunch!
4 stars for you and Open Sesame.
Cheers!