Example: Using multipoint touch events

This example MIDlet shows you how to implement multipoint touch interaction using the basic Canvas pointer methods together with pointer numbers. When you drag your fingers on the screen, the MIDlet displays a worm-like animation at every touch point simultaneously.

Figure: MultipointTouchEvents MIDlet running on a Series 40 full touch device

Prerequisites

You need the following to develop and test this MIDlet:

  • Nokia SDK 2.0 for Java

  • Java Runtime 2.0.0 for Series 40

For instructions on how to get started with Java ME, see section Getting started.

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for information about implementing the MIDlet

You can download the project files for the MIDlet from the download page.