summaryrefslogtreecommitdiff
path: root/apps/plugins/rockblox.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/rockblox.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/rockblox.c')
-rw-r--r--apps/plugins/rockblox.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 8625e35cfb..0b3382ff19 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -121,6 +121,18 @@ PLUGIN_HEADER
121#define ROCKBLOX_DROP BUTTON_SELECT 121#define ROCKBLOX_DROP BUTTON_SELECT
122#define ROCKBLOX_RESTART BUTTON_REC 122#define ROCKBLOX_RESTART BUTTON_REC
123 123
124#elif CONFIG_KEYPAD == SANSA_C200_PAD
125
126#define ROCKBLOX_OFF BUTTON_POWER
127#define ROCKBLOX_ROTATE_RIGHT BUTTON_UP
128#define ROCKBLOX_ROTATE_RIGHT2 BUTTON_VOL_DOWN
129#define ROCKBLOX_ROTATE_LEFT BUTTON_VOL_UP
130#define ROCKBLOX_DOWN BUTTON_DOWN
131#define ROCKBLOX_LEFT BUTTON_LEFT
132#define ROCKBLOX_RIGHT BUTTON_RIGHT
133#define ROCKBLOX_DROP BUTTON_SELECT
134#define ROCKBLOX_RESTART BUTTON_REC
135
124#elif CONFIG_KEYPAD == IRIVER_H10_PAD 136#elif CONFIG_KEYPAD == IRIVER_H10_PAD
125 137
126#define ROCKBLOX_OFF BUTTON_POWER 138#define ROCKBLOX_OFF BUTTON_POWER
@@ -259,6 +271,19 @@ PLUGIN_HEADER
259#define LEVEL_Y 49 271#define LEVEL_Y 49
260#define LINES_Y 82 272#define LINES_Y 82
261 273
274#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80)
275
276#define BLOCK_WIDTH 4
277#define BLOCK_HEIGHT 4
278#define BOARD_X 10
279#define BOARD_Y 0
280#define PREVIEW_X 89
281#define PREVIEW_Y 61
282#define LABEL_X 78
283#define SCORE_Y 10
284#define LEVEL_Y 30
285#define LINES_Y 50
286
262#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 64) 287#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 64)
263 288
264#define BLOCK_WIDTH 3 289#define BLOCK_WIDTH 3