Rockbox mail archive
Subject: Re: user editable keys binding schemes wanted
On Mon, 30 Sep 2002 22:29:21 +0200, Björn Stenberg <bjorn_at_haxx.se>
>I apologise, I didn't mean to completely reject the idea.
>Take the recorder ON button as an example. In WPS, release of the
>ON button is used to go to the dir browser, unless another key was
>pressed while the ON key was down, or if the ON key was held down
>for > ~500ms.
After cleaning a few flaws in my initially proposed concept it can
handle that. I'm too lazy to explain it in detail here but consider
that we can change to another key scheme with each button event - be
it a normal, a release or a repeat event. Another key scheme means
another state and this way we get something like an ordinary Mealy
>How do we make this type of thing configurable, while keeping a
>clean design? How would the code in WPS change?
The design would become much tighter without sacrificing flexibility -
as far as I can see now. The code in WPS would become much simpler
because it would delegate the complete button evaluation to a key
scheme handler. The complexity could be moved to the key schemes. I
believe that these key schemes can be maintained much more easily
because they introduce a well defined mechanism with simple rules.
Blablabla. I'll do a demo and show you some code.
Page was last modified "Jan 10 2012" The Rockbox Crew