Mac OSX Catalina 10.15.3, MacBook Pro (15-inch, 2017), Matlab 2019b
I searched the forum for a thread on the topic, but didn’t find one … apologies if I overlooked something. And I’m aware that using the toolbox with Catalina is not a good idea … sorry.
When running KbDemo and I press a key, there’s no response (except the key being printed in the Matlab command window). I can only exit by Ctrl-C.
Output looks as follows (I pressed fghj):
1 of 4. Testing KbCheck and KbName: press a key to see its number.
Press the escape key to proceed to the next demo.
fghj
Operation terminated by user during KbCheck (line 271)
In KbDemo>KbDemoPart1 (line 107)
[ keyIsDown, seconds, keyCode ] = KbCheck;
In KbDemo (line 81)
KbDemoPart1;
The same happens when running KbPressWait, apparently the key strokes are not registered by KbCheck at all.
Running KbQueueDemo gives an error message:
>> KbQueueDemo
1 of 6. Testing KbQueueCheck and KbName: press a key to see its number.
Press the escape key to proceed to the next demo.
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_system
general description: Error reported by a system call
specific description: Failed to create event queue for detecting key press.
module name: PsychHID
subfunction call: KbQueueCreate
file name: /Users/kleinerm/projects/OpenGLPsychtoolbox/Psychtoolbox-3/PsychSourceGL/Source/OSX/PsychHID/PsychHIDStandardInterfaces.c
function name: PsychHIDOSKbQueueCreate
line number: 982
Error using PsychHID
See error message printed above.
Error in KbQueueCreate (line 211)
PsychHID('KbQueueCreate', deviceNumber);
Error in KbQueueDemo>KbQueueDemoPart1 (line 81)
KbQueueCreate(deviceIndex);
Error in KbQueueDemo (line 45)
KbQueueDemoPart1(deviceIndex);
And the output of PsychHIDTest is the following:
PsychHIDTest
Making a list of all your HID-compliant devices. ...
You have 7 low level HID-compliant devices:
device 1: Keyboard, , , 0 inputs, 0 outputs
device 2: Page: 0xff00, Usage: 0xf, , Keyboard Backlight, 0 inputs, 0 outputs
device 3: Mouse, , Apple Internal Keyboard / Trackpad, 0 inputs, 0 outputs
device 4: Page: 0xff00, Usage: 0xb, , Apple Internal Keyboard / Trackpad, 5 inputs, 0 outputs
device 5: Page: 0xff00, Usage: 0xd, , Apple Internal Keyboard / Trackpad, 16 inputs, 64 outputs
device 6: Page: 0xff00, Usage: 0x3, , Apple Internal Keyboard / Trackpad, 108 inputs, 0 outputs
device 7: Keyboard, , Apple Internal Keyboard / Trackpad, 0 inputs, 0 outputs
Calling KbPressWait with any of the suitable device numbers does not make a difference.
Any help would be appreciated.