Re: [cc65] cgetc() and repeating keys

From: Payton Byrd <>
Date: 2012-06-07 20:23:01
On Thu, Jun 7, 2012 at 1:16 PM, Groepaz <> wrote:

> On Thursday 07 June 2012, you wrote:
> > Is there a way to get cgetc() to repeat keys without having to lift your
> > finger off the keyboard and retyping the key?  I would assume that the
> > routine just gets the next key from the keyboard buffer, thus leaving the
> > kernal to fill the keyboard buffer, but I suspect that instead it is
> > reading the keyboard directly and only returning if the keyboard's state
> > changes.  Am I in the ballpark here?  If so, is there a chance that
> cgetc()
> > could be updated with timer code that if the keyboard is pressed, but the
> > same key is being held down that it will return that key after a period
> of
> > time?  It could use the same repeat speed as the kernal.
> just modify the respective kernal flags (in zeropage, iirc)
> --

Turning on repeat for all keys (putting $80 at $28A) does not effect

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jun 7 20:24:16 2012

This archive was generated by hypermail 2.1.8 : 2012-06-07 20:24:19 CEST