CHAPTER 4

image

User Input

We’ve given MonoGame plenty of opportunities to tell us what it is thinking. Now let’s even things up and let it know what’s going on inside our human brains. Input is, of course, an essential part of any game and will add interactivity and excitement to our projects.

The options that are available to us will vary from platform to platform and from device to device. In the Windows 8 world, your game may be running on a desktop PC with a keyboard, mouse, and gamepad, or it may be running on a tablet with a touch screen and no buttons to speak of whatsoever. If it is running on a phone, the environment is a little more predictable—all ...

Get Windows 8 and Windows Phone 8 Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.