1
我需要在xna中一起應用多點觸摸事件(垂直拖動,水平拖動)。如果有人知道請幫忙。XNA中的多點觸摸事件
我需要在xna中一起應用多點觸摸事件(垂直拖動,水平拖動)。如果有人知道請幫忙。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;
我想我需要打開一個元的請求來改變**標題**爲**問題標題**所以它很清楚它應該是什麼樣的標題。 – BoltClock 2011-03-08 06:44:54
@BoltClock,請做。 – 2011-03-08 06:45:30
@BoltClock:不得不嘲笑那條評論,儘管水印不夠嗎?有人會想不管怎麼說... – 2011-03-08 06:47:01