FS#6787 - Button filter
Opened by Nicolas GIF (salokyn) - Saturday, 10 March 2007, 16:01 GMT
Last edited by Alex Parker (BigBambi) - Saturday, 05 June 2010, 23:01 GMT
|
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. |
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.