Game Development Reference
In-Depth Information
By default, by creating a new type of input, the input manager duplicates the bottom
input. So open it and we'll make our changes. Follow these steps to create our new
input:
1. Change the value of the Name parameter to A_360 .
2. Change the value of the Positive Button parameter to joystick button
0 .
Adding a start button and trigger inputs
As you can see, it's fairly easy to add an Xbox 360 input in the input manager. You
can follow the same steps to add the start button; just change the value of the Name
parameter to Start_360 and the value of the positive button to joystick button
7 . For the two triggers, you will need to follow slightly different steps:
1. Change the value of the Name parameter to Triggers_360 .
2. Change the value of the Sensitivity parameter to 0.001 .
3. Check the Invert parameter.
4. Change the value of the Type parameter to Joystick Axis .
5. Change the value of the Axis parameter to 3rd Axis (Joysticks and Scroll-
wheel).
Adding directional pad inputs
For the directional pad, we'll need to make the horizontal buttons and vertical buttons
separately, but these will both be similar to how we set up the triggers. First, we will
create the horizontal directional pad input:
1. Change the value of the Name parameter to HorizDpad_360 .
2. Change the value of the Sensitivity parameter to 1 .
3. Change the value of the Type parameter to Joystick Axis .
4. Change the value of the Axis parameter to 6th Axis (Joysticks) .
For the vertical directional pad input, you can follow the exact same steps as we
did for the horizontal directional pad input; just change the value of Name to Ver-
tDpad_360 and change the value of Axis to 7th Axis (Joysticks) . This com-
pletes the Xbox 360 Controller inputs; all that's left are the PC inputs.
Search WWH ::




Custom Search