Windows 8 devices typically have multi-touch screens, which allow users to use multiple fingers at the same time for different input interactions, such as clicking, dragging, or shrinking gestures. In addition, the touch, mouse, and pen/stylus interactions in Windows 8 are received, processed, and managed as pointer input.
I. Gesture processing
Let's start by summarizing what gestures are commonly used in Windows 8.
1, click: Touch the screen with a finger, then lift the finger.
2, Long press: touch the screen with one finger and keep still.
3, Slide: Touch the screen with one or more fingers and move toward the same direction.
4, Light sweep: Touch the screen with one or more fingers and move a shorter distance in the same direction.
5, Shrink: Touch the screen with two or more fingers and then close the finger together or separate.
6, Rotate: Touch the screen with two or more fingers and move along a clockwise or counterclockwise arc.
7, Stretch: Touch the screen with two or more fingers and then separate the fingers.
How do we handle gestures in Windows 8?
Let's take a look at the Windows 8 gesture API: