예제 #1
0
 void DeviceEvents_MuteStateChanged(object sender, PL.DeviceEventArgs e)
 {
     if (e.Mute)
     {
         StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.Mute));
     }
     else
     {
         StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.UnMute));
     }
 }
예제 #2
0
 void DeviceEvents_AudioStateChanged(object sender, PL.DeviceEventArgs e)
 {
     if (e.AudioState == PL.AudioType.MonoOff)
     {
         StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.RadioClosed));
     }
     else if (e.AudioState == PL.AudioType.MonoOn || e.AudioState == PL.AudioType.MonoOnWait)
     {
         StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.RadioOpen));
         if (ignore_next_radio_on)
         {
             ignore_next_radio_on = false;
         }
         else
         {
             StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.ToggleTalk));
         }
     }
 }
예제 #3
0
 void DeviceEvents_ButtonPressed(object sender, PL.DeviceEventArgs e)
 {
     Debug.WriteLine("Got a raw event of: " + e.ButtonPressed);
 }
예제 #4
0
 void DeviceEvents_FlashPressed(object sender, PL.DeviceEventArgs e)
 {
     StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.Flash));
 }
예제 #5
0
 void DeviceEvents_TalkPressed(object sender, PL.DeviceEventArgs e)
 {
     StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.ToggleTalk));
 }