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
This commit is contained in:
Bertrik Sikken 2011-11-13 16:16:18 +00:00
parent 86e8f6ad23
commit 36d7bbbb4e
3 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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