|
Re: Xbox Controller Tank Drive
As tp said, you can treat the XBox controller as a very strange joystick that has 6 different axes:
1 Left Joystick X
2 Left Joystick Y
3 Triggers
4 Right Joystick X
5 Right Joystick Y
6 DPAD X (never used this)
So, do joystick.GetRawAxis(2) for the left tank drive and joystick.GetRawAxis(5) for the right. You may need to change the signs of the input to get what you want.
|