I am building an experiment that calculates reaction times of different sorts of images. I need a joystick to determine when each routine ends, with a 50% threshold in either y-axis direction (toward or away from participant). I have included below a snapshot of the custom code I wrote and included in every trial:
Thank you for your reply. While I am able to print the axis values, I am still not able to end the routine when the y-axis value crosses the threshold. A snapshot of my relevant code is below: