Re: [cc65] cgetc() and repeating keys

From: Groepaz <>
Date: 2012-06-07 20:16:38
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)


Persönlichkeiten werden nicht durch schöne Reden geformt, sondern durch Arbeit 
und eigene Leistung. 
<Albert Einstein>

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:16:45 2012

This archive was generated by hypermail 2.1.8 : 2012-06-07 20:16:48 CEST