pub unsafe extern "C" fn LeapGetDeviceList(
    hConnection: LEAP_CONNECTION,
    pArray: *mut LEAP_DEVICE_REF,
    pnArray: *mut u32
) -> eLeapRS
Expand description

\ingroup Functions Retrieves a list of Ultraleap Tracking camera devices currently attached to the system.

To get the number of connected devices, call this function with the pArray parameter set to null. The number of devices is written to the memory specified by pnArray. Use the device count to create an array of LEAP_DEVICE_REF structs large enough to hold the number of connected devices. Finally, call LeapGetDeviceList() with this array and known count to get the list of Leap devices. A device must be opened with LeapOpenDevice() before device properties can be queried.

@param hConnection The connection handle created by LeapCreateConnection(). @param[out] pArray A pointer to an array that LeapC fills with the device list. @param[in,out] pnArray On input, set to the number of elements in pArray; on output, LeapC sets this to the number of valid device handles. @returns The operation result code, a member of the eLeapRS enumeration. @since 3.0.0