本文整理匯總了C#中Windows.UI.Core.PointerEventArgs.GetIntermediatePoints方法的典型用法代碼示例。如果您正苦於以下問題:C# PointerEventArgs.GetIntermediatePoints方法的具體用法?C# PointerEventArgs.GetIntermediatePoints怎麽用?C# PointerEventArgs.GetIntermediatePoints使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Windows.UI.Core.PointerEventArgs
的用法示例。
在下文中一共展示了PointerEventArgs.GetIntermediatePoints方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OnPointerMoved
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.");
}
}
示例2: UpdateIntermediatePoints
void UpdateIntermediatePoints(PointerEventArgs args)
{
foreach (var point in args.GetIntermediatePoints())
{
if (point.IsInContact)
{
currentPointsInContact[point.PointerId] = point.Position;
}
else
{
currentPointsInContact.Remove(point.PointerId);
}
}
}
示例3: Input_PointerMoved
private void Input_PointerMoved(object sender, PointerEventArgs args)
{
gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
args.Handled = true;
}
示例4: OnPointerMoved
void OnPointerMoved(CoreWindow sender, PointerEventArgs args)
{
gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
}