procedure RefreshDevices;
Updates the list of currently active devices.
Result: stored in self (calling object)
Remarks:
After a device is unplugged or a new device connected (via USB for example), the list of devices needs to be updated with a call to RefreshDevices. The DeviceIndex is reset to the default device with index -1 !