[simpits-tech] Anti-Keybounce

Gene Buckle geneb at deltasoft.com
Thu Sep 18 08:42:23 PDT 2003


> > It's called "debounce".  Typically you'd wait 30ms before accepting the
> > keystroke.  I think that's what was used with the TRS-80 Model I debounce
> > code.  It's been a _long_ time. :)
> >
>
> It has been years and years since I had to think about this! I did write
> lots of code for the CoCo (Dragon in the UK) and probably still have
> examples in assembler from back then!
>
> So, you're suggesting...
>
> 1. key 'event' occurs
> 2. wait 30mS
> 3. read key state
>
>

Almost.  You want to make sure that the contact stays *closed* for at
least 30ms.

g.




More information about the Simpits-tech mailing list