PsychHID(‘Devices’)

Psychtoolbox>PsychHID.{mex*} subfunction

devices=PsychHID(‘Devices’ [, deviceClass])

Return a struct array describing each connected USB HID device.
‘deviceClass’ optionally selects for the class of input device. This is not
supported on all operating systems and will be silently ignored if unsupported.
On Linux you can select the following classes of input devices: 1 =
MasterPointer, 2 = MasterKeyboard, 3 = SlavePointer 4 = SlaveKeyboard, 5 =
Floating slave device.

deviceClass -1 returns the numeric deviceIndex of the default keyboard device
for keyboard queues.

Not all device properties are returned on all operating systems. A zero, empty
or -1 value for a property in the returned structs can mean that the information
could not be returned.

###See also: