[Coco] PEEK for detecting CoCo arrow keys, etc.?

Arthur Flexser flexser at fiu.edu
Fri Dec 19 19:40:35 EST 2014


Are you trying to determine if an arrow key is currently being held down
(like if you are using arrow keys to control movement in a game), or just
what the most recently pressed arrow key was, which I imagine is what
Robert's method will give you?  For currently held down keys, you want to
peek at the keyboard rollover table at $152-158 (if I remember the
locations correctly).  Depending on the version of Color Basic and Disk
Basic that is in use, this method may require a statement like Y$=INKEY$
immediately afterward to properly reset the rollover table when the key is
released.

Art

On Fri, Dec 19, 2014 at 12:00 PM, Allen Huffman <alsplace at pobox.com> wrote:

> Does anyone remember the PEEK locations for detecting arrow keys
> (preferably one that works from 1980 CoCo 1 to CoCo 3)?
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list