From 36d7bbbb4e605f1df373282fbbcb3cfb0e15b464 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 13 Nov 2011 16:16:18 +0000 Subject: Sansa clip zip: make more plugins compile (lamp, wormlet, matrix) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30974 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lamp.c | 6 ++++++ apps/plugins/matrix.c | 6 ++++++ apps/plugins/wormlet.c | 7 ++++++- 3 files changed, 18 insertions(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c index f95516e384..7389811a59 100644 --- a/apps/plugins/lamp.c +++ b/apps/plugins/lamp.c @@ -140,6 +140,12 @@ # define LAMP_UP BUTTON_UP # define LAMP_DOWN BUTTON_DOWN +#elif CONFIG_KEYPAD == SANSA_CLIP_PAD +# define LAMP_LEFT BUTTON_LEFT +# define LAMP_RIGHT BUTTON_RIGHT +# define LAMP_UP BUTTON_UP +# define LAMP_DOWN BUTTON_DOWN + #else # error Missing key definitions for this keypad #endif diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c index 04601f6d9e..d1a672cd96 100644 --- a/apps/plugins/matrix.c +++ b/apps/plugins/matrix.c @@ -175,6 +175,12 @@ CONFIG_KEYPAD == MROBE500_PAD #define MATRIX_SLEEP_LESS BUTTON_DOWN #define MATRIX_PAUSE BUTTON_PLAYPAUSE +#elif CONFIG_KEYPAD == SANSA_CLIP_PAD +#define MATRIX_EXIT BUTTON_POWER +#define MATRIX_SLEEP_MORE BUTTON_UP +#define MATRIX_SLEEP_LESS BUTTON_DOWN +#define MATRIX_PAUSE BUTTON_SELECT + #else #error Unsupported keypad #endif diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index d3fbbdcf2d..bb3526991d 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c @@ -338,7 +338,12 @@ CONFIG_KEYPAD == MROBE500_PAD #endif #endif -#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) +#if (LCD_WIDTH == 96) && (LCD_HEIGHT == 96) +#define FOOD_SIZE 3 +#define ARGH_SIZE 4 +#define SPEED 14 +#define MAX_WORM_SEGMENTS 128 +#elif (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) #define FOOD_SIZE 3 #define ARGH_SIZE 4 #define SPEED 14 -- cgit v1.2.3