Chapter 2. Interaction Experience: Multitouch, Gestures, and Other Input

This chapter will cover the following recipes:

  • Detecting supported device input types
  • Detecting whether or not a device supports multitouch
  • Verifying specific gesture support for common interactions
  • Using gestures to zoom a display object
  • Using gestures to pan a display object
  • Using gestures to swipe a display object
  • Using gestures to rotate a display object
  • Accessing raw touchpoint data
  • Creating a custom gesture based upon touchpoint data
  • Emulating the Android long-press interaction
  • Invoking the virtual keyboard programmatically
  • Responding to Android soft-key interactions
  • Responding to trackball and D-Pad events