PsychOpenXRCore(‘GetCount’)

Psychtoolbox>PsychOpenXRCore.{mex*} subfunction

numDevices = PsychOpenXRCore(‘GetCount’);

Returns count of currently connected XR devices.
Returns -1 if the runtime or server couldn’t get initialized.

###See also: Open