the pinout for that trackball is as follows:
1- 5v
2- x or y 1
3- x or y 2
4- ground

also, if you want to find the correct connector for those, oscar controls has them, he uses them for his spinners and sutch. i'm sure if you'd ask, he'd sell them individually.