In this chapter, we will cover the different ways that inputs will work on mobile devices. We will start off with the input that is already built in to our project using mice, and then move on to touch events, gestures, using the accelerometer, and accessing information via the Touch class.
Chapter overview
Our objectives
This chapter will be split into a number of topics. It will contain a simple, step-by-step process from beginning to end. Here is the outline of our tasks:
- Using mouse input for mobile input
- Movement via touch
- Implementing a gesture
- Using the accelerometer
- Reacting to touch