This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8708 - Cowon D2: Button definitions for plugins and WPS
Attached to Project:
Rockbox
Opened by Andreas Müller (andiator) - Sunday, 09 March 2008, 21:13 GMT+2
Last edited by Rob Purchase (shotofadds) - Sunday, 27 April 2008, 18:35 GMT+2
Opened by Andreas Müller (andiator) - Sunday, 09 March 2008, 21:13 GMT+2
Last edited by Rob Purchase (shotofadds) - Sunday, 27 April 2008, 18:35 GMT+2
|
DetailsCowon D2: Key/Button definitions/mappings for plugins, WPS and setings menu. Alot of '#define' stuff
|
This task depends upon
Closed by Rob Purchase (shotofadds)
Sunday, 27 April 2008, 18:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks :-)
Sunday, 27 April 2008, 18:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks :-)
The touchscreen button definitions should be defined in a HAVE_TOUCHPAD block (common to the D2 and m:robe500), with the D2-specific section containing only definitions for the physcial buttons (PLUS/MINUS/MENU/POWER).
The attached patch adds touchpad support to the target build, by adapting JdGordon's existing m:robe500 work. It's far from perfect, for example menu navigation is difficult because it sometimes registers incorrect presses. But it does make plugins such as jewels and brickmania playable ;-)
Other touchpad-targets have to define a target section anyway, at least an empty one.
The touchpad definitions are overrideable: e.g. #define PLUGIN_EXIT POWER_BUTTON in target section overrides the one in touchpad section (made with #ifndef PLUGIN_EXIT ...)
Added some missing button description/help text for some plugins. Had to change #ifdef/#else logic in plasma.c and starfield.c, hoping not to break other targets.
Changed drivers/button.c, there was an assumption that every target has BUTTON_LEFT/BUTTON_RIGHT --> added a mapping from BUTTON_MIDLEFT to BUTTON_LEFT etc. Is needed for screen flipping.