ok,to help you out a bit,im going to post the wiring for a 2 button joystick for use on an amiga(digital joystick)
pin1= up
pin2=down
pin3=left
pin4=right
pin5=n/c
pin6=button 1
pin7=+5 volts~100ma
pin8=ground
pin9=button 2
all direction and button presses are sent to ground to get directions and button presses
best of luck