Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (TouchPanel.IsGestureAvailable)
- {
- // Read the next gesture
- GestureSample gesture = TouchPanel.ReadGesture();
- switch (gesture.GestureType)
- {
- case GestureType.Tap: Shoot(gesture.Position); break;
- case GestureType.FreeDrag: Move(gesture.Position); break;
- }
- }
Add Comment
Please, Sign In to add comment