문제

I got a small issue. I got a game running on windows 8 but there is a small bug in it. We drag the player around by a FreeDrag event but the problem is when you're dragging the bird around and placing a finger on the other side of the screen en start dragging you will start another FreeDrag event and influence the movement of the bird.

So my question is can I handle only 1 FreeDrag instead of both? someone asked something comparing individually handle gesture's but didn't got an answer on it.

Thanks in advance.

도움이 되었습니까?

해결책

I don't think you can handle that, FreeDrag is not a multitouch gesture in XNA, this means that if you touch the screen with another finger you'll start another drag gesture.
My suggestion is to avoid FreeDrag and use TouchLocation instead to move your bird. It's easier to handle and combined with TouchCollection detects multitouch gestures.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top