This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9645 - Working buttons for Fuze
Attached to Project:
Rockbox
Opened by Thomas Martitz (kugel.) - Monday, 15 December 2008, 01:33 GMT+2
Last edited by Björn Stenberg (zagor) - Wednesday, 31 December 2008, 22:03 GMT+2
Opened by Thomas Martitz (kugel.) - Monday, 15 December 2008, 01:33 GMT+2
Last edited by Björn Stenberg (zagor) - Wednesday, 31 December 2008, 22:03 GMT+2
|
DetailsThis patch enables at least some of the buttons for the main build.
It's based on domonoky's buttons for e200v2, but does it a bit better (imho), as it's a) only changing the afsel and dir for the pins we need for the buttons -- and this GREATLY improves reliability of the lcd, as in it's working perfectly instead of showing crazy stuff on the screen (and doing this also avoids changing lcd_update_rect to lcd_update) b) it uses mutex instead of disabling irqs. NOTE: The lcd_mutex comes from http://www.rockbox.org/tracker/task/9623 , so apply that one too. This mutex is needed anyway, else the buttons reads are going to mess up the lcd. This combo is tested and works well (for me of course). I decided to remove the HAVE_SCROLLWHEEL define for now, until the scrollwheel actually works. The reason is that those defines disturb creating a reduced keymap which uses up/down to browse in lists. I also added a reduced keymap, for testing purpose. It's lousy based on the c200 keymap, and lacks some features, but it makes browsing possible (and playing music). Add it to SOURCES (and remove the regular keymap) in case you use it. |
This task depends upon
Closed by Björn Stenberg (zagor)
Wednesday, 31 December 2008, 22:03 GMT+2
Reason for closing: Accepted
Additional comments about closing: Commited in r19629.
Wednesday, 31 December 2008, 22:03 GMT+2
Reason for closing: Accepted
Additional comments about closing: Commited in r19629.
FS#9623) on Fuze 8GB hardware. Display is reliable, button presses working for up / down / left / right / select.Does anyone have objections against this patch? I'd also be interested if the way I did it works well for e200v2 too.
BTW: I've so far not experienced any missed button press.
Also updated some comments (and the copyright notice).
Note: this one is only supposed to make the Fuze/e200v2 usable. It's by no means meant to be a final keymap!
Reverted to e200 keymap, so that everything is usable (replaced Rec with Home).
This can go in.