The code package for this chapter contains three projects that demonstrate the things we've learnt in this chapter.
This project demonstrates the use of the s3ePointer API by showing the screen coordinates pointed at by the user. If a multi-touch display is available, it will show multiple touch points.
The project also demonstrates a simple approach for detecting swipes and pinches and how it is possible to use the same gesture detection code with both single- and multi-touch capable displays.
The Slide project shows how to use the s3eAccelerometer API to read the current accelerometer values, apply a smoothing algorithm to them, and generate the angles of tip around the X- and Y-axes.
It also demonstrates something a little more game-like by allowing you to move a little red box around the screen by tipping the device.