0

XNA + windows phone 7で、イベントまたはタップダウン(タッチダウン)とタップアップ(タッチアップ)を2つの異なるジェスチャとして認識する方法はありますか?

4

1 に答える 1

1

ここに行きます:

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
            }

        }
于 2012-10-13T05:53:31.480 に答える