Guest User

Untitled

a guest
May 28th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. while (TouchPanel.IsGestureAvailable)
  2. {
  3.     // Read the next gesture
  4.     GestureSample gesture = TouchPanel.ReadGesture();
  5.  
  6.     switch (gesture.GestureType)
  7.     {
  8.         case GestureType.Tap: Shoot(gesture.Position); break;
  9.         case GestureType.FreeDrag: Move(gesture.Position); break;
  10.     }
  11. }
Add Comment
Please, Sign In to add comment