I am trying to find information on the code necessary to impliment the 8-button box (in the 3-T) in psychtoolbox. Any chance that someone has done this before and can point me in the right direction? Do I need to load up a different library at the start of the task? Any information on how the buttons map out?
I know that the wiki lists instructions for implimenting the joystick. I had hoped that the 8-button box was the same, but that appears to not be the case.
The 8-button box is implemented as a keyboard-like USB device. Pressing a button sends an ASCII key code which the computer reads just as though you had pressed a key on the keyboard. The driver is automatically loaded and no special library routines are needed. The 8 buttons send in key codes '1', '2', ... '8' I believe (I'm not sure in which order).