diff options
author | Marianne Arnold <pixelma@rockbox.org> | 2007-09-20 10:49:48 +0000 |
---|---|---|
committer | Marianne Arnold <pixelma@rockbox.org> | 2007-09-20 10:49:48 +0000 |
commit | 12ddb8ea0d8dbaa38703c37551fcd5c5267819e6 (patch) | |
tree | e679031afc87caf181d21cce816aff540d4a5cb0 /apps/plugins/zxbox | |
parent | 7b71787bd8dc1f570d2270a312438f86b66e3456 (diff) | |
download | rockbox-12ddb8ea0d8dbaa38703c37551fcd5c5267819e6.tar.gz rockbox-12ddb8ea0d8dbaa38703c37551fcd5c5267819e6.zip |
Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/keymaps.h | 3 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxbox_keyb.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h index 603869d454..6af84719ff 100644 --- a/apps/plugins/zxbox/keymaps.h +++ b/apps/plugins/zxbox/keymaps.h | |||
@@ -77,7 +77,8 @@ | |||
77 | #define ZX_UP BUTTON_SCROLL_UP | 77 | #define ZX_UP BUTTON_SCROLL_UP |
78 | #define ZX_DOWN BUTTON_SCROLL_DOWN | 78 | #define ZX_DOWN BUTTON_SCROLL_DOWN |
79 | 79 | ||
80 | #elif CONFIG_KEYPAD == SANSA_E200_PAD | 80 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ |
81 | (CONFIG_KEYPAD == SANSA_C200_PAD) | ||
81 | #define ZX_SELECT BUTTON_SELECT | 82 | #define ZX_SELECT BUTTON_SELECT |
82 | #define ZX_MENU BUTTON_POWER | 83 | #define ZX_MENU BUTTON_POWER |
83 | #define ZX_LEFT BUTTON_LEFT | 84 | #define ZX_LEFT BUTTON_LEFT |
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c index 5bea491a51..2b1d171c11 100644 --- a/apps/plugins/zxbox/zxbox_keyb.c +++ b/apps/plugins/zxbox/zxbox_keyb.c | |||
@@ -101,7 +101,8 @@ | |||
101 | #define KBD_UP BUTTON_SCROLL_UP | 101 | #define KBD_UP BUTTON_SCROLL_UP |
102 | #define KBD_DOWN BUTTON_SCROLL_DOWN | 102 | #define KBD_DOWN BUTTON_SCROLL_DOWN |
103 | 103 | ||
104 | #elif CONFIG_KEYPAD == SANSA_E200_PAD | 104 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ |
105 | (CONFIG_KEYPAD == SANSA_C200_PAD) | ||
105 | 106 | ||
106 | /* TODO: Check keyboard mappings */ | 107 | /* TODO: Check keyboard mappings */ |
107 | 108 | ||