void OnPointerMoved(CoreWindow sender, PointerEventArgs args) { try { gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints()); } catch (System.Exception e) { System.Diagnostics.Debug.WriteLine("Lets do the time warp again."); } }
void UpdateIntermediatePoints(PointerEventArgs args) { foreach (var point in args.GetIntermediatePoints()) { if (point.IsInContact) { currentPointsInContact[point.PointerId] = point.Position; } else { currentPointsInContact.Remove(point.PointerId); } } }
private void UnprocessedInput_PointerMoved(InkUnprocessedInput sender, Windows.UI.Core.PointerEventArgs args) { var id = args.CurrentPoint.PointerId; // 需要根据 id 分开多个手指 InkStrokeBuilder.SetDefaultDrawingAttributes(new InkDrawingAttributes() { Color = Colors.Blue, Size = new Size(5, 5) }); _currentPointerList.AddRange(args.GetIntermediatePoints()); _inkStroke = InkStrokeBuilder.CreateStrokeFromInkPoints( _currentPointerList.Select(t => new InkPoint(t.Position, t.Properties.Pressure)), Matrix3x2.Identity); Canvas.Invalidate(); }
private void Input_PointerMoved(object sender, PointerEventArgs args) { gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints()); args.Handled = true; }
void OnPointerMoved(CoreWindow sender, PointerEventArgs args) { gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints()); }