I take it from your terminology that you are using easyC. If so, wouldn't this code work--see the attached screenshot...sorry, easyC won't let me copy code out of it...
I don't know much about easyC, so this might not be the right answer.
If you are using MPLAB:
Code:
pwm01 = p1_y;
pwm02 = p2_y
would map joystick 1's y axis to pwm output 1, and joystick 2's y axis to pwm output 2.
Ask if you need more help.
Good luck,
JBot