Basically what he said, just simplified. To map two joysticks, you would do something like this:
Code:
// This code assumes the joystick are on ports 1 and 2 and pwm01 and 02 are the drive motors.
// These can be easily changed
pwm01 = p1_y;
pwm02 = p2_y;
That code just makes the Y axis of the joysticks on ports 1 and 2 run the left and right drive motors.