Gestures
Windows Phone has support for touch-based gestures, and this support is also exposed through XNA Game studio. This means we can take advantage of them in our games without having to implement the gestures ourselves. In the following section, you can find a list of all supported gestures. Note that the only multi-touch gesture is pinch.
Tap: a tap on the screen (touch and release)
DoubleTap: two taps in short succession
Hold: a finger touches the screen for a brief period
FreeDrag: a finger touches the screen and moves in any direction
HorizontalDrag: a finger touches the screen and moves about the horizontal axis
VerticalDrag: a finger touches the screen and moves about the vertical axis
DragComplete: end of FreeDrag, HorizontalDrag, or VerticalDrag
Flick: drag finger across screen and lift without stopping the drag
Pinch: two fingers move around the screen
PinchComplete: end of Pinch
Enabling gestures
The static TouchPanel
class has a property called EnabledGestures
. With this property, you...