Tutorial 3.1: Adding An Input Device To The Game
In this tutorial, we will enable our game to use the keyboard for input. First, we need to add the devices to our Input Manager.

Add the following to your Initialize() function
XInput.AddDevice("Keyboard", 1);

That's it, the game can now use the keyboard as an input device. In the next tutorial, we will use it to rotate our model. Tutorial 3.2: Moving actors based on input

Last edited Mar 23, 2008 at 6:52 AM by Hazardous101, version 1


No comments yet.