// Triggered when a button press event is generated by device: ************************************************************ private void OnButtonPress(ButtonPressArgs e) { if (ButtonPress != null) ButtonPress(this, e); }
void m_spokes_ButtonPress(object sender, ButtonPressArgs e) { OnPltEvent(new PltEventArgs(PltEventType.ButtonPressed, ((int)e.headsetButton).ToString())); }
void m_spokes_ButtonPress(object sender, ButtonPressArgs e) { LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> App got a BUTTON PRESS: " + e.headsetButton.ToString()); }
void m_spokes_ButtonPress(object sender, ButtonPressArgs e) { LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> App got a BUTTON PRESS: " + e.headsetButton.ToString()); if (e.headsetButton == Interop.Plantronics.DeviceHeadsetButton.HeadsetButton_Talk) { // if not on a call and we have a dialled number then initiate outbound call if (!m_oncall && m_dialednumber.Length > 0) { //StartOutboundCallTimer(); DoConnectSimulatedCall(m_dialednumber.ToString()); } else { // then clear dialled number m_dialednumber.Clear(); } } }
private void OnButtonPress(object sender, ButtonPressArgs e) { _traceContext.Status(String.Format("DeviceManager.OnButtonPress {0} pressed", e.headsetButton)); switch (e.headsetButton) { /* case Interop.Plantronics.DeviceHeadsetButton.HeadsetButton_Talk: if (TalkButtonPressed != null) { TalkButtonPressed(this, EventArgs.Empty); } break;*/ case Interop.Plantronics.DeviceHeadsetButton.HeadsetButton_VolumeUpHeld: //When the DA80 talk button is held down, the event that is raised is actually a VolumeUpHeld if (TalkButtonHeld != null) { TalkButtonHeld(this, EventArgs.Empty); } break; default: break; } }