Androidlnput and Accelerometer Handler

The Input interface we designed in Chapter 3 grants us access to the accelerometer, the touchscreen and the keyboard in polling and event modes via a couple of convenient methods. Putting all the code for an implementation of that interface into a single file is a bit nasty, though, so we will outsource all the input event handling into handler classes. The Input implementation will then use those handlers to pretend that it is actually performing all the work.

0 0

Post a comment