C# XNA中的多点触摸事件

C# XNA中的多点触摸事件,c#,xna,C#,Xna,我需要在xna中将多点触摸事件应用在一起垂直拖动和水平拖动。如果有人知道,请帮助。我将手势用作水平、垂直拖动,以下是一个示例: while (TouchPanel.IsGestureAvailable) { GestureSample gesture =TouchPanel.ReadGesture(); if (gesture.GestureType == GestureType.VerticalDrag) { //insert the code here that exe

我需要在xna中将多点触摸事件应用在一起垂直拖动和水平拖动。如果有人知道,请帮助。

我将手势用作水平、垂直拖动,以下是一个示例:

while (TouchPanel.IsGestureAvailable)
{
  GestureSample gesture =TouchPanel.ReadGesture();
  if (gesture.GestureType == GestureType.VerticalDrag)
  {
     //insert the code here that execute when the event is detected
  }
}
这是更新或线程中的代码,但是,必须在类中声明


TouchPanel.EnabledGestures=GestureType.VerticalDrag

我将手势用作水平、垂直拖动,这是一个示例:

while (TouchPanel.IsGestureAvailable)
{
  GestureSample gesture =TouchPanel.ReadGesture();
  if (gesture.GestureType == GestureType.VerticalDrag)
  {
     //insert the code here that execute when the event is detected
  }
}
这是更新或线程中的代码,但是,必须在类中声明


TouchPanel.EnabledGestures=GestureType.VerticalDrag

我想我需要在meta上打开一个请求,将标题更改为问题标题,这样就可以清楚地知道它应该是什么类型的标题。@BoltClock:我不得不嘲笑这个评论,不过水印还不够吗?不管怎样,人们会想……可能的重复:@Brad Christie:你是说占位符文本你的编程问题是什么?是的,我也这么想…@BoltClock:请不要!它每次都让我发笑。我想我需要在meta上打开一个请求,将标题更改为问题标题,这样就可以清楚地知道它应该是什么类型的标题。@BoltClock:我不得不对这个评论发笑,但水印还不够吗?不管怎样,人们会想……可能的重复:@Brad Christie:你是说占位符文本你的编程问题是什么?是的,我也这么想…@BoltClock:请不要!每次都让我发笑。