[Lcdproc] Patch: Wrapping sliders

Peter Marschall peter@adpm.de
Thu Oct 4 19:19:02 2007


Hi,

On Sunday, 30. September 2007, Markus Dolze wrote:
> I thought about it and had a look at the other input controls. They work
> a little bit different than sliders. IP, Alpha and Numeric inputs wrap
> their values around. This is OK, if one wants e.g. in a alpha input to
> change from 'W' to 'B'. Even with an Up and Down key I would like them
> to wrap (at least forward).
>
> LCDd always assumes you have 4 keys available (Menu, Enter, Up, Down)
> and reserves them, regardless if they are enabled in the config or not.
> But the left and right key are only reserved, if they are actually
> configured. As soon as a left or right key is configured, LCDd assumes
> you have an "extended" keypad, which makes the Enter key behave
> differently. The logic behind there is a bit odd, too.

Let me try to explain the odd logic of the numeric, alpha and ip
input types.

With only 4 keys, the Enter key is used to step to the next digit/character.
Only when the last digit/character of the input is reached, the Enter key
leaves the menu.

With 6 keys this kind of logic is not necessary, because here we have the
Left and the Right key to move left resp. right.

Hope this helps
Peter

-- 
Peter Marschall
peter@adpm.de