PTB doesn't recognize button box

Hi all,

I’m having an issue getting PTB to recognize input from a button box. I have PTB 3.0.18, MATLAB 2022b, and Windows 10.

The button box can type letters into a word document, and into the MATLAB command window, but KbCheck doesn’t recognize it. EG, when I run “[keyDown, keySeconds, whichKey] = KbCheck;” nothing happens when a button is pushed.

What should I do?

If your button box behaves like a keyboard, KbCheck should pick up its events. Try following:

[keyDown, keySeconds, whichKey] = KbCheck(-1); % read event from all keyboards

Ah, sorry, I should have mentioned: I actually tried that, and it didn’t work.