Re: [cc65] cgetc() and repeating keys

From: Groepaz <groepaz1gmx.net>
Date: 2012-06-07 20:25:25
On Thursday 07 June 2012, you wrote:
> On Thu, Jun 7, 2012 at 1:16 PM, Groepaz <groepaz@gmx.net> 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)
> 
> So you're saying cgetc() uses the kernal to read a key?

yes, most (if not all) conio functions use the kernal (but bypass the file 
related stuff)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Wenn A für Erfolg steht, gilt die Formel A = X + Y + Z. X ist Arbeit, Y ist 
Muse, und Z heißt Mundhalten. 
<Albert Einstein>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jun 7 20:25:55 2012

This archive was generated by hypermail 2.1.8 : 2012-06-07 20:25:58 CEST