[Coco] Testing CoCo 2 joystick ports
Christopher R. Hawks
chawks at dls.net
Sat Jun 24 21:59:59 EDT 2017
On Sat, 24 Jun 2017 18:33:53 -0700
Russ Bernhardt <russell.bernhardt at gmail.com> wrote:
> I've constructed a basic joystick plug with a 6-pin plug and jumper
> wires at the end so I can experiment connecting different things but
> I can't get a simple button test working.
>
> I've confirmed no shorts and my test consists of looping in basic
> printing button(0) while touching ground (3) and fire1 (4).
>
> The only output I get is "0" no matter if I use left or right
> joystick ports... I even swapped pin 4 and 2 in case I reversed them
> but no dice.
>
> Any hints?
>
> Russ
>
>
> Sent from my iPhone
>
Russ:
You have to call JOYSTICK(0) before you can read the other 3 axes
(JOYSTICK(1), etc). Maybe that applies to the buttons as well.
Try 'PRINT JOYSTICK(0); PRINT BUTTON(0)'
PEEK()ing should work in any case.
Christopher R. Hawks
HAWKSoft
--
I tell people often: I make mistakes every single day! ... I just fix
them before anyone finds out about it.
----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
More information about the Coco
mailing list