summaryrefslogtreecommitdiff
path: root/apps/plugins/chip8.c
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2007-09-20 10:49:48 +0000
committerMarianne Arnold <pixelma@rockbox.org>2007-09-20 10:49:48 +0000
commit12ddb8ea0d8dbaa38703c37551fcd5c5267819e6 (patch)
treee679031afc87caf181d21cce816aff540d4a5cb0 /apps/plugins/chip8.c
parent7b71787bd8dc1f570d2270a312438f86b66e3456 (diff)
downloadrockbox-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/chip8.c')
-rw-r--r--apps/plugins/chip8.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 0b06ace784..ae6e3bfd29 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1028,6 +1028,14 @@ STATIC void chip8 (void)
1028#define CHIP8_KEY6 BUTTON_RIGHT 1028#define CHIP8_KEY6 BUTTON_RIGHT
1029#define CHIP8_KEY8 BUTTON_SCROLL_DOWN 1029#define CHIP8_KEY8 BUTTON_SCROLL_DOWN
1030 1030
1031#elif CONFIG_KEYPAD == SANSA_C200_PAD
1032#define CHIP8_OFF BUTTON_POWER
1033#define CHIP8_KEY2 BUTTON_VOL_UP
1034#define CHIP8_KEY4 BUTTON_LEFT
1035#define CHIP8_KEY5 BUTTON_SELECT
1036#define CHIP8_KEY6 BUTTON_RIGHT
1037#define CHIP8_KEY8 BUTTON_VOL_DOWN
1038
1031#elif (CONFIG_KEYPAD == IRIVER_H10_PAD) 1039#elif (CONFIG_KEYPAD == IRIVER_H10_PAD)
1032#define CHIP8_OFF BUTTON_POWER 1040#define CHIP8_OFF BUTTON_POWER
1033#define CHIP8_KEY2 BUTTON_SCROLL_UP 1041#define CHIP8_KEY2 BUTTON_SCROLL_UP