Hello Joey,
Yes, You will need USB female socket. Me for example uses one half of USB extension cable (second half I use for projects where mbed acts as USB device). Each of those 10K resistors You connect between D+ (or D-) and GND pin. Then connect white and green wires to D- and D+ pins. Red wire connect to Vout pin to feed connected with power and black wire connect to GND.
For start You can import whole example program and compile. If You use terminal on Your PC, You will be able to see values sent by DualShock 3 gamepad. Those values show pressure data for buttons and values of axes for sticks and values for accelerometers and gyro. As I remember there are not printed out to terminal data for Select, Start and PS buttons(they are not pressure sensitive). But it only means that You can't see them on terminal in program as is but mbed receives them and after some changes You can see them on terminal and also use them in Your project. All data from controller are stored in structure.
PS2 controller isn't USB but uses another "protocol". Code to use PS2 gamepad and read values is here http://mbed.org/users/simon/programs/PlayStationController/16mhs4 from Simon and nice notebook page herehttp://mbed.org/users/vcazan/notebook/second-life-rock-band/ by Vlad Cazan.
For both is same that You receive actual state of all buttons, axes, (gyros) in one report x times per second.
Typicall gamepads sends each axe as one byte and 8 buttons in one byte. Dpad uses nibble - half byte. This typicall gamepad report is 6 bytes in length. 4 bytes are for 4 axes and two bytes store value of 12 buttons(12 bits of 16) and Dpad.
I hope this help You. If You wish ask more.
I would like to interface the playstation with the mbed. Trouble is I can't find any successful code with it. It seems like people have succesfully interface it arduino and PIC but being a total beginner in programming it's just too mind-blowing difficult to me. Appreciate it if anyone could help.
All I like is to succesfully read the up down left right inputs to control a mobile vehicle.