8. User Input

There wouldn’t be much point to a computer game if there weren’t user input to the game. Android and AndEngine together have a particularly rich set of input capabilities that developers can take advantage of to make their games more interesting. Let’s first take a look at each of the user input features and see how AndEngine makes use of the underlying Android features. You might also want to use Android features that are not directly supported by AndEngine (EditText Views, for example), so we’ll take a look at those capabilities as well.

Android and AndEngine Input Methods

Android has a very flexible user interface, anticipating a wide variety of Android devices with different styles of user input. It is likely that the users ...

Get Learning Android Game Programming: A Hands-On Guide to Building Your First Android Game now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.