[SOLVED]Arcade trackball to usb mouse help

hydrolisk1792:
So that means that i hook trackball up to the teal coloured numbered pins on the sparkfun pinout and i can have all the other pins as buttons that activate when shorted to ground? So by hooki g trackball to the pins you specified it will manipulate the joystick portion of the windows properties window and the buttons will manipulate the buttons in the windows properties window?

If your Teal is what the image legend names as 'Arduino' then you should get movement of the joystick X/Y axis when the trackball is rotated. The code is a simple test and should simulate the joystick being pushed hard over in the trackball direction of rotation. The same with the buttons on the pins 4-7.
This code is only a test that things are connected properly and will need changing to add extra buttons and adjust the trackball operation to suit your needs.