[Coco] Testing CoCo 2 joystick ports

JoLaJaKa! jolajaka at gmail.com
Sat Jun 24 22:53:52 EDT 2017


Look at the archive for a diagnostic manual.  There's a short program for testing joysticks.  

   

Sent from my iPhone

> On Jun 24, 2017, at 6:59 PM, Christopher R. Hawks <chawks at dls.net> wrote:
> 
> 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 |                
>         ||     ||   
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list