Touch gestures

The touch gestures (finger movements on the device display area) are interpreted using touch gesture framework provided by UI framework. The UI FW listens to the pointer events and notifies the client after recognizing the gestures. The client can enable listening of desired gestures.

The touch gesture framework supports the following single touch gestures:
  • Tap

  • Double tap

  • Drag

  • Flick

  • Swipe (up, down, left and right)

Gesture Framework can provide swipe speed that can be used as input to inertia based effects. Two finger pinch (zoom) multiple touch gesture is also recognized.

Additionally, there is an option to support drag and drop. It is initiated by holding the touch position for a short time in the same place. The holding mode is active until the user releases the touch.

Using touch gestures in C++ applications

The API to use for recognizing touch gestures is Touch Gesture API.

Touch Gesture Framework contains a pointer to a control (derived from CCoeControl) where gestures are recognized. These gestures are reported to the gesture observer. Based on the gesture interest set by the gesture observer, CAknTouchGestureFw converts the pointer events to the logical gesture.