void m_spokes_Attached(object sender, AttachedArgs e) { m_availableDevices.Clear(); m_attacheddevice = e.m_device; m_devicenotified = false; // new: device is not considered available to headtracking api // until inrange event! }
void m_spokes_Detached(object sender, EventArgs e) { m_availableDevices.Clear(); m_attacheddevice = null; m_devicenotified = false; if (m_activeConnection != null) { m_callbackhandler.ConnectionClosed(m_activeConnection.m_device); closeConnection(m_activeConnection); } }
private void NotifyDeviceAvailable(Interop.Plantronics.ICOMDevice dev) { m_availableDevices.Clear(); // note: only 1 call control device for pc spokes PLTDevice deviceTmp = new PLTDevice(dev); m_availableDevices.Add(deviceTmp); if (m_constructordone) { m_callbackhandler.DeviceAdded(deviceTmp); // tell connected app that a Plantronics // device was added (or selected as call control device in Spokes 3.0 control panel). // Connected app may then choose to make a PLTLabsAPI connection to this device // for purpose of reading sensor data from it. } }