4 DC motors and PS2 controller

I'm trying to run 4 DC motors each one is 12v but I don't know how to write the required code to run them by the analog sticks of the PS2 joystick.

PLZ HELP!!!

What have you so far? Which motor driver(s) were you looking at?