This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6787 - Button filter
Attached to Project:
Rockbox
Opened by Nicolas GIF (salokyn) - Saturday, 10 March 2007, 17:01 GMT+2
Last edited by Alex Parker (BigBambi) - Sunday, 06 June 2010, 01:01 GMT+2
Opened by Nicolas GIF (salokyn) - Saturday, 10 March 2007, 17:01 GMT+2
Last edited by Alex Parker (BigBambi) - Sunday, 06 June 2010, 01:01 GMT+2
|
DetailsHere is a /firmware/target/coldfire/iaudio/x5/button-x5.c containing my button filter I made for my X5.
It consists in storing button data in an array (each new value erase the older one). The average of the values is validated if the difference between the lower and the higher values is not too big. I think it can be ported to any Jukebox and the filter strength can be configurable. |
This task depends upon
I began to write another one still working with an array in oder to configure the filter strength (by modifying the array size). And if I can, maybe I could add a new entry in the settings menu.
(what problem does it solve?)
The patch as still a problem : what to return when keypress in not validated by filter ? Nothing or the last valid keypress ? Both in fact depending of the context. I have to watch for it.