0
在XNA + windows phone 7中,任何事件或如何識別輕拍(touch down)和輕敲(touch up)爲兩種不同的手勢?windows phone 7 - xna編程輸入手勢
在XNA + windows phone 7中,任何事件或如何識別輕拍(touch down)和輕敲(touch up)爲兩種不同的手勢?windows phone 7 - xna編程輸入手勢
這裏有雲:
TouchCollection touchCollection = TouchPanel.GetState();
foreach (TouchLocation tl in touchCollection)
{
if (tl.State == TouchLocationState.Pressed)
{
...on touch down code
}
if (tl.State == TouchLocationState.Released)
{
...on touch up code
}
}