static void DoEvents() { DispatcherFrame frame = new DispatcherFrame(); AppDispatcher.Invoke(DispatcherPriority.ApplicationIdle, new DispatcherOperationCallback(ExitFrame), frame); Dispatcher.PushFrame(frame); }
private void AxisChangedHandler(object sender, AxisChangedEventArgs e) { Logging.Log.Debug($"Device:{e.Device.Name}, Axis:{e.AxisId}, Value:{e.Value}"); AppDispatcher.Invoke(Go); }