Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Windows 8 Game Development

You're reading from   Learning Windows 8 Game Development Windows 8 brings touchscreens to the tablet and PC. This book will show you how to develop games for both by following clear, hands-on examples. Takes your C++ skills into exciting areas of 3D development.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849697446
Length 244 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Michael Quandt Michael Quandt
Author Profile Icon Michael Quandt
Michael Quandt
Arrow right icon
View More author details
Toc

Chapter 3. Adding the Input

We have images on the screen, and we can see the start of a game forming, but it wouldn't be much of a game without some interactivity. The keyboard and mouse, gamepad, touch screen, or motion control—if you've played a video game then you have used one of these to tell the game what you want it to do. We need a way to play the game, and in this chapter we'll look at some of the different options that are available to get that input into the game, and add some interactivity.

Over the course of this chapter you'll learn how to add input to your game, and we'll take this further by explaining and understanding the different types of input, as well as how to use the different input devices in Windows 8.

You'll understand the following later in the chapter:

  • Types of input
  • The Pointer API
  • Keyboard input
  • XInput for the Microsoft Xbox 360 Controller
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime