Setting joystick axes motion as allowed response on joystick plugin
In my experiment, participants are to indicate if they have seen a stimulus by moving a joystick to the left or right. If a movement to the left stands for yes (or no) will be randomized.
I'm using the joystick plugin. If I get it right, I need to define both correct responses and allowed responses in order to receive information about accuracy and correctness of participant's answers in the data output.
My problem is that I don't know how to define x-axis movement as the allowed response in the joystick block.
I have used "joystick.get_joyinput(joybuttonlist=None, timeout=None)" to find out how the axis are handled. I got the following output: (u'joyaxismotion', [-3.0517578125e-05, -3.0517578125e-05, -3.0517578125e-05], 2203741). I know that the first three numbers stand for the x, y, and z axis and the last number for a time stamp.
I have tried to write "u'joyaxismotion' ", "joyaxismotion", "u'joyaxismotion' ", and so on into the allowed response field and I always get the following error: "The variable (e.g.) 'joyaxesmotion' does not exist. Tip: Use the variable inspector (Ctrl+I) to see all variables". I get this error message even if I did create this variable.
Anyway, I'm having a tough time with this problem and I can't figure out how to solve it on my own. So I'd really appreciate it if you have some ideas and input how to handle it!
Love your work!