Game Development Reference
In-Depth Information
Adding PC control inputs
Most of our PC control inputs are already integrated into the input manager; all that
is left are the number keys, I key, and Esc key.
You can actually follow the same steps as at the beginning of this chapter, when we
added the Xbox 360 buttons. For the number keys you'll want to change each of
their names to num1 , num2 , num3 , and num4 . As for their positive button paramet-
ers, change their names to 1 , 2 , 3 , and 4 , accordingly.
The I key name will be I_Key and its positive button parameter will be i . For the
Esc key, we will want the Name parameter to be Esc_Key and its positive button
parameter will be escape .
Search WWH ::




Custom Search