[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: joystick



On Sat, 27 May 2006 10:54:39 +0200, "Guillaume Tello"
<houten.van@wanadoo.fr> wrote:

>hi,
>
>I get a joystick but with a cut cable. I plugged it again and i'd like to 
>know if this is correct:
>
>UP : PDL(0) = 0
>DOWN: PDL(0)=255
>
>RIGHT PDL(1)=255
>LEFT PDL(1)=0
>
>the top button if peek(49250)>127
>the left button if peek(49249)>127.
>
>    Thanks!
>
>    Guillaume. 
>


The top left corner should be zero, zero.  The bottom right corner is
255,255.  Most Apple joysticks have the cable comming out of the top,
btw.

Your buttons are correct.  The top button is called button #1  by
Apple manuals and the left button is button #0.