O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to User Input

Every device, from a TV to a microwave oven, requires some sort of control device to use it. A TV requires a remote to change channels, and a microwave has a front control panel for programming the temperature and time to cook a meal. In fact, most consumer electronics devices require some sort of user input. User input is what makes the difference between a technical demo and a game. Reading the input from a control allows the game to ascertain what the player would like to do, and then perform that task.

Every game console, from the Atari 2600 to the Xbox, has some form of user input. The user input is relayed to the console via some form of controller. DB uses the DirectInput library to get all of its input. If you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required