[Coco] Reading keyboard input without basic

Brett Gordon beretta42 at gmail.com
Tue Feb 9 19:53:15 EST 2016


Coco3 can do a key interrupt... but once it fires make sure you shut off
the interrupt (via FF92 or FF93 ) for a jiffy or two, otherwise the key
interrupt will fire non-stop until the user releases the key(s).  :(

CoCo2 doesn't have a key interrupt.  So you'll have to poll every once in a
while.  I usually use the VSYNC interrupt for this.  Basic has some pretty
handy routines for scanning the keyboard, btw. (Manipulation of the
"rollover" RAM is allows for some cool stuff btw...)


Brett M Gordon


More information about the Coco mailing list