|
|
Rockbox mail archiveSubject: Re: unreliable buttons? try thisFrom: John Donahue (john.donahue_at_excite.com) Date: 2004-07-04
Thanks for trying to solve this problem.
Maybe instead just check that the reading goes back down to zero before allowing a lesser but non-zeroish value. like allow all the 26F's during a button hold but ignore that 1D2 upon release since it didnt go down to zero first. But, allow number changes that go higher as would result from button combinations. um, also the release of one of the buttons after a combo press should be recognized as ok i guess...
Several people reported unreliable button detection by Rockbox, sometimes there are misinterpretations. You can stop reading if you don't suffer from this.
I have added a kind of "debouncing" to the button code. Now, a button is only valid if the analog port reported several stable readings within a certain "corridor". Please test it and report if this is an improvement. The corridor may be too strict, causing dead buttons. So try the .ajz via rolo first, flash later, or you need the F1-start. ;-)
_______________________________________________
Page was last modified "Jan 10 2012" The Rockbox Crew |