[Coco] Color BASIC 1.3 How to get joystick button input

Arthur Flexser flexser at fiu.edu
Thu May 9 02:52:33 EDT 2013


P.S.  A simpler way would be to look at the value of PEEK(&HFF00) AND 3.

3 => no button
2 => right button
1 => left button

On Thu, May 9, 2013 at 2:12 AM, Arthur Flexser <flexser at fiu.edu> wrote:
> The BUTTON function exists only on the CoCo 3, not on the earlier CoCo's.
>
> The method suggested in the Extended Basic manual is:  Look at
> PEEK(&HFF00) and if the value is 255 or 127, no button. If the value
> is 254 or 126 then it's the right button. If the value is 253 or 125
> then it's the left button.
>
> Art
>
> On Thu, May 9, 2013 at 1:29 AM, Ben <ben_jimenez at yahoo.com> wrote:
>> Hi,
>>
>> I'm new to programming on the coco. I have a coco 2 with Color BASIC 1.3. It
>> does not seem to support the button(0) function. I've looked through some
>> pokes and did not find one to get the button values. Is there a way to get the
>> button values from a deluxe joystick?
>>
>> Ben
>>
>>
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list