这是我的代码
TouchCollection touch = TouchPanel.GetState();
if (touch.Count >= 1)
{
TouchLocation prevLocation;
bool prevAvailable = touch[0].TryGetPreviousLocation(out prevLocation);
System.Diagnostics.Debug.WriteLine("x:"+touch[0].Position.ToString()+"prev"+prevLocation.Position.ToString());
}
但在输出窗口中我得到了“x:infinity,y:infinity”。这不是一个真实的立场。任何想法请谢谢:D