这是调试器进入handlinput区域但从未清除touchpanel.isgestureavailable的代码,即使我们点击屏幕也提前感谢您的帮助:)
#region Handle Input
public override void HandleInput(InputState input)
{
Debug.WriteLine("hey stackoverflow\n");
if (TouchPanel.IsGestureAvailable)
{
Debug.WriteLine("check presence\n");
// read the next gesture
var gesture = TouchPanel.ReadGesture();
if (gesture.GestureType == GestureType.Tap | gesture.GestureType == GestureType.Flick | gesture.GestureType == GestureType.Hold)
{
// code sample
}
}
base.HandleInput(input);
}
#endregion
请帮助已经这样做了两天了!!!!!!