Gamepad for online experiment
in JATOS
Hello!
I am looking to use a joystick to collect responses for a go/no-go approach avoidance task. I see that it is possible using the built in gamepad feature in OpenSesame, however this component is not supported for use with JATOS. My question is whether I can use the JavaScript Gamepad API as a workaround, by including an inline script. Below is a link to more info on that API. Any ideas on whether this can work?
Thank you!!
Comments
This does not exactly have to do with JATOS, but with OSWeb. @Daniel might be able to help?
Hi Daniel,
In principle, you should be able to access any external javascript library that you'd like from osweb, but currently it requires you to dive into the zip file that OpenSesame exports for you to upload to Jatos. If you add the url to the script source of the gamepad library you would like to use in the < head section of the only html file you find in there, you should be able to call the functions of the library inside OpenSesame's (and hence osweb's)
inline_javascriptitems.I think it's quite an elaborate undertaking as I don't know how well this gamepad library will play with Osweb's inner workings. we also have no experience at all with integrating external libraries like these, so we probably cannot be of any help. If you still decide to try, let us know how you progressed.
Good luck!