Game Development Reference
In-Depth Information
Once the project has been recompiled, you will be ready to add it as a reference to your
game's project ( Figure 4-6 ). Simply use the Reference Manager in Visual Studio and you
will be able to set this up easily.
Figure 4-6. Here you can see the GameController project is now referenced in the main game's
project.
Now that everything is connected up in Visual Studio, you can start adding support for the
controller in your own game. To help you out, I suggest checking out the Controller.h file,
which has all the constants you will need to reference in your own code that offers access to
various values from the controller. Now let's take a look at how each of these map to a phys-
ical Xbox controller ( Figure 4-7 ).
Search WWH ::




Custom Search