From 841cffab5b825eee3972946725988eb2bca8583d Mon Sep 17 00:00:00 2001 From: Szymon Dziok Date: Sat, 13 Feb 2010 15:46:34 +0000 Subject: [PATCH] Packard Bell Vibe 500: More plugin keymaps (second portion). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24634 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/blackjack.c | 14 ++++++++++++++ apps/plugins/bounce.c | 8 ++++++++ apps/plugins/brickmania.c | 9 +++++++++ apps/plugins/calculator.c | 11 +++++++++++ apps/plugins/calendar.c | 10 ++++++++++ apps/plugins/chip8.c | 9 +++++++++ apps/plugins/chopper.c | 6 ++++++ apps/plugins/clix.c | 10 ++++++++++ apps/plugins/fireworks.c | 4 ++++ apps/plugins/invadrox.c | 7 +++++++ apps/plugins/jewels.c | 10 ++++++++++ apps/plugins/matrix.c | 6 ++++++ apps/plugins/minesweeper.c | 10 ++++++++++ apps/plugins/mp3_encoder.c | 6 ++++++ apps/plugins/oscilloscope.c | 11 +++++++++++ apps/plugins/pegbox.c | 19 +++++++++++++++++++ apps/plugins/plasma.c | 6 ++++++ apps/plugins/pong.c | 8 ++++++++ apps/plugins/rockblox1d.c | 4 ++++ apps/plugins/rockboy/rockboy.c | 12 ++++++++++++ apps/plugins/rockpaint.c | 11 +++++++++++ apps/plugins/sliding_puzzle.c | 9 +++++++++ apps/plugins/snake.c | 8 ++++++++ apps/plugins/snake2.c | 9 +++++++++ apps/plugins/sokoban.c | 15 +++++++++++++++ apps/plugins/solitaire.c | 20 +++++++++++++++++++- apps/plugins/spacerocks.c | 9 +++++++++ apps/plugins/star.c | 17 +++++++++++++++++ apps/plugins/starfield.c | 8 ++++++++ apps/plugins/superdom.c | 8 ++++++++ apps/plugins/vu_meter.c | 11 +++++++++++ apps/plugins/wormlet.c | 10 ++++++++++ apps/plugins/xobox.c | 9 +++++++++ 33 files changed, 323 insertions(+), 1 deletion(-) diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index a7876c6e12..897a40bd19 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c @@ -390,6 +390,20 @@ enum { #define BJACK_RIGHT BUTTON_RIGHT #define BJACK_LEFT BUTTON_LEFT +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define BJACK_SELECT_NAME "OK" +#define BJACK_STAY_NAME "CANCEL" +#define BJACK_QUIT_NAME "REC" +#define BJACK_DOUBLE_NAME "MENU" +#define BJACK_SELECT BUTTON_OK +#define BJACK_QUIT BUTTON_REC +#define BJACK_STAY BUTTON_CANCEL +#define BJACK_DOUBLEDOWN BUTTON_MENU +#define BJACK_UP BUTTON_UP +#define BJACK_DOWN BUTTON_DOWN +#define BJACK_RIGHT BUTTON_NEXT +#define BJACK_LEFT BUTTON_PREV + #else #error No keymap defined! #endif diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index eb513bca8e..a7f8e1847d 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c @@ -196,6 +196,14 @@ PLUGIN_HEADER #define BOUNCE_QUIT BUTTON_FFWD #define BOUNCE_MODE BUTTON_PLAY +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define BOUNCE_LEFT BUTTON_PREV +#define BOUNCE_RIGHT BUTTON_NEXT +#define BOUNCE_UP BUTTON_UP +#define BOUNCE_DOWN BUTTON_DOWN +#define BOUNCE_QUIT BUTTON_REC +#define BOUNCE_MODE BUTTON_MENU + #else #error No keymap defined! #endif diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 16f62388f7..4d9962b0e2 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -225,6 +225,15 @@ CONFIG_KEYPAD == SANSA_M200_PAD #define UP BUTTON_UP #define DOWN BUTTON_DOWN +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define QUIT BUTTON_REC +#define LEFT BUTTON_PREV +#define RIGHT BUTTON_NEXT +#define ALTLEFT BUTTON_MENU +#define ALTRIGHT BUTTON_PLAY +#define SELECT BUTTON_OK +#define UP BUTTON_UP +#define DOWN BUTTON_DOWN #else #error No keymap defined! diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index f7cafc8f24..4e40625356 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -363,6 +363,17 @@ PLUGIN_HEADER #define CALCULATOR_CALC BUTTON_FFWD #define CALCULATOR_CLEAR BUTTON_REW +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD + +#define CALCULATOR_LEFT BUTTON_PREV +#define CALCULATOR_RIGHT BUTTON_NEXT +#define CALCULATOR_UP BUTTON_UP +#define CALCULATOR_DOWN BUTTON_DOWN +#define CALCULATOR_QUIT BUTTON_REC +#define CALCULATOR_INPUT BUTTON_OK +#define CALCULATOR_CALC BUTTON_PLAY +#define CALCULATOR_CLEAR BUTTON_CANCEL + #else #error No keymap defined! #endif diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c index 1106c38d4b..9327ac6aa2 100644 --- a/apps/plugins/calendar.c +++ b/apps/plugins/calendar.c @@ -248,6 +248,16 @@ PLUGIN_HEADER #define CALENDAR_NEXT_MONTH BUTTON_FFWD #define CALENDAR_PREV_MONTH BUTTON_REW +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define CALENDAR_QUIT BUTTON_REC +#define CALENDAR_SELECT BUTTON_OK +#define CALENDAR_NEXT_WEEK BUTTON_DOWN +#define CALENDAR_PREV_WEEK BUTTON_UP +#define CALENDAR_NEXT_DAY BUTTON_NEXT +#define CALENDAR_PREV_DAY BUTTON_PREV +#define CALENDAR_NEXT_MONTH BUTTON_PLAY +#define CALENDAR_PREV_MONTH BUTTON_MENU + #else #error "No keypad setting." #endif diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c index 4767898206..4aa19125f2 100644 --- a/apps/plugins/chip8.c +++ b/apps/plugins/chip8.c @@ -1127,6 +1127,15 @@ CONFIG_KEYPAD == MROBE500_PAD #define CHIP8_KEY5 BUTTON_PLAY #define CHIP8_KEY6 BUTTON_RIGHT #define CHIP8_KEY8 BUTTON_DOWN + +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define CHIP8_OFF BUTTON_REC +#define CHIP8_KEY2 BUTTON_UP +#define CHIP8_KEY4 BUTTON_PREV +#define CHIP8_KEY5 BUTTON_OK +#define CHIP8_KEY6 BUTTON_NEXT +#define CHIP8_KEY8 BUTTON_DOWN + #else #error No keymap defined! #endif diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index c48e1a9951..c303908600 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c @@ -150,6 +150,12 @@ CONFIG_KEYPAD == MROBE500_PAD #define ACTION BUTTON_RIGHT #define ACTIONTEXT "RIGHT" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define QUIT BUTTON_REC +#define ACTION BUTTON_PLAY +#define ACTION2 BUTTON_UP +#define ACTIONTEXT "PLAY" + #else #error No keymap defined! #endif diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c index 6fa6931300..34c62e954f 100644 --- a/apps/plugins/clix.c +++ b/apps/plugins/clix.c @@ -166,6 +166,16 @@ PLUGIN_HEADER #define CLIX_BUTTON_UP BUTTON_UP #define CLIX_BUTTON_DOWN BUTTON_DOWN +#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) +#define CLIX_BUTTON_QUIT BUTTON_REC +#define CLIX_BUTTON_UP BUTTON_UP +#define CLIX_BUTTON_DOWN BUTTON_DOWN +#define CLIX_BUTTON_SCROLL_FWD BUTTON_PLAY +#define CLIX_BUTTON_SCROLL_BACK BUTTON_MENU +#define CLIX_BUTTON_LEFT BUTTON_PREV +#define CLIX_BUTTON_RIGHT BUTTON_NEXT +#define CLIX_BUTTON_CLICK BUTTON_OK + #else #error "no keymap" #endif diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c index 8a858d8d4f..263c05792b 100644 --- a/apps/plugins/fireworks.c +++ b/apps/plugins/fireworks.c @@ -110,6 +110,10 @@ PLUGIN_HEADER #define BTN_MENU BUTTON_LEFT #define BTN_FIRE BUTTON_PLAY +#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) +#define BTN_MENU BUTTON_MENU +#define BTN_FIRE BUTTON_OK + #elif defined(HAVE_TOUCHSCREEN) /* This is a touchscreen target */ #else diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index fcd1c2d950..3e5c98e2a3 100644 --- a/apps/plugins/invadrox.c +++ b/apps/plugins/invadrox.c @@ -195,6 +195,13 @@ CONFIG_KEYPAD == MROBE500_PAD #define RIGHT BUTTON_RIGHT #define FIRE BUTTON_PLAY +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD + +#define QUIT BUTTON_REC +#define LEFT BUTTON_PREV +#define RIGHT BUTTON_NEXT +#define FIRE BUTTON_OK + #else #error INVADROX: Unsupported keypad #endif diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c index 6c718b4f99..711a65591e 100644 --- a/apps/plugins/jewels.c +++ b/apps/plugins/jewels.c @@ -267,6 +267,16 @@ CONFIG_KEYPAD == MROBE500_PAD #define HK_SELECT "PLAY" #define HK_CANCEL "REWIND" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define JEWELS_UP BUTTON_UP +#define JEWELS_DOWN BUTTON_DOWN +#define JEWELS_LEFT BUTTON_PREV +#define JEWELS_RIGHT BUTTON_NEXT +#define JEWELS_SELECT BUTTON_OK +#define JEWELS_CANCEL BUTTON_REC +#define HK_SELECT "OK" +#define HK_CANCEL "REC" + #else #error No keymap defined! #endif diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c index 09d8ec756c..e7326ea4f4 100644 --- a/apps/plugins/matrix.c +++ b/apps/plugins/matrix.c @@ -150,6 +150,12 @@ CONFIG_KEYPAD == MROBE500_PAD #define MATRIX_SLEEP_LESS BUTTON_DOWN #define MATRIX_PAUSE BUTTON_PLAY +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define MATRIX_EXIT BUTTON_REC +#define MATRIX_SLEEP_MORE BUTTON_PREV +#define MATRIX_SLEEP_LESS BUTTON_NEXT +#define MATRIX_PAUSE BUTTON_PLAY + #else #error Unsupported keypad #endif diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index 1805c2251a..7b26169da7 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c @@ -249,6 +249,16 @@ CONFIG_KEYPAD == MROBE500_PAD # define MINESWP_DISCOVER BUTTON_REW # define MINESWP_INFO BUTTON_FFWD +#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) +# define MINESWP_LEFT BUTTON_PREV +# define MINESWP_RIGHT BUTTON_NEXT +# define MINESWP_UP BUTTON_UP +# define MINESWP_DOWN BUTTON_DOWN +# define MINESWP_QUIT BUTTON_REC +# define MINESWP_TOGGLE BUTTON_PLAY +# define MINESWP_DISCOVER BUTTON_OK +# define MINESWP_INFO BUTTON_MENU + #else #error No keymap defined! #endif diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index 3dfb487653..070bdb199f 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c @@ -2505,6 +2505,12 @@ CONFIG_KEYPAD == MROBE500_PAD #define MP3ENC_DONE BUTTON_PLAY #define MP3ENC_SELECT BUTTON_RIGHT +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define MP3ENC_PREV BUTTON_UP +#define MP3ENC_NEXT BUTTON_DOWN +#define MP3ENC_DONE BUTTON_REC +#define MP3ENC_SELECT BUTTON_OK + #else #error No keymap defined! #endif diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index 1daac661b2..69ae8bcfaf 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c @@ -276,6 +276,17 @@ PLUGIN_HEADER #define OSCILLOSCOPE_VOL_UP BUTTON_UP #define OSCILLOSCOPE_VOL_DOWN BUTTON_DOWN +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define OSCILLOSCOPE_QUIT BUTTON_REC +#define OSCILLOSCOPE_DRAWMODE BUTTON_MENU +#define OSCILLOSCOPE_ADVMODE BUTTON_CANCEL +#define OSCILLOSCOPE_ORIENTATION BUTTON_OK +#define OSCILLOSCOPE_PAUSE BUTTON_PLAY +#define OSCILLOSCOPE_SPEED_UP BUTTON_PREV +#define OSCILLOSCOPE_SPEED_DOWN BUTTON_NEXT +#define OSCILLOSCOPE_VOL_UP BUTTON_UP +#define OSCILLOSCOPE_VOL_DOWN BUTTON_DOWN + #else #error No keymap defined! #endif diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c index 72b9f70c87..feaf543ae6 100644 --- a/apps/plugins/pegbox.c +++ b/apps/plugins/pegbox.c @@ -399,6 +399,25 @@ CONFIG_KEYPAD == MROBE500_PAD #define LVL_DOWN_TEXT "REW" #define SELECT_TEXT "PLAY" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define PEGBOX_SAVE (BUTTON_REC|BUTTON_OK) +#define PEGBOX_QUIT BUTTON_REC +#define PEGBOX_RESTART BUTTON_MENU +#define PEGBOX_LVL_UP BUTTON_OK +#define PEGBOX_LVL_DOWN BUTTON_CANCEL +#define PEGBOX_UP BUTTON_UP +#define PEGBOX_DOWN BUTTON_DOWN +#define PEGBOX_RIGHT BUTTON_NEXT +#define PEGBOX_LEFT BUTTON_PREV +#define PEGBOX_SELECT BUTTON_PLAY + +#define SAVE_TEXT "REC + OK" +#define QUIT_TEXT "REC" +#define RESTART_TEXT "MENU" +#define LVL_UP_TEXT "OK" +#define LVL_DOWN_TEXT "CANCEL" +#define SELECT_TEXT "PLAY" + #else #error Unsupported keymap! #endif diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c index 0b1cab2b13..f91242ed9f 100644 --- a/apps/plugins/plasma.c +++ b/apps/plugins/plasma.c @@ -164,6 +164,12 @@ static bool boosted = false; #define PLASMA_DECREASE_FREQUENCY BUTTON_DOWN #define PLASMA_REGEN_COLORS BUTTON_LEFT +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define PLASMA_QUIT BUTTON_REC +#define PLASMA_INCREASE_FREQUENCY BUTTON_UP +#define PLASMA_DECREASE_FREQUENCY BUTTON_DOWN +#define PLASMA_REGEN_COLORS BUTTON_PLAY + #endif #ifdef HAVE_TOUCHSCREEN diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c index 579fdd8fe5..d14db5fdbd 100644 --- a/apps/plugins/pong.c +++ b/apps/plugins/pong.c @@ -205,6 +205,14 @@ CONFIG_KEYPAD == MROBE500_PAD #define PONG_RIGHT_UP BUTTON_FFWD #define PONG_RIGHT_DOWN BUTTON_REW +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define PONG_QUIT BUTTON_REC +#define PONG_PAUSE BUTTON_OK +#define PONG_LEFT_UP BUTTON_MENU +#define PONG_LEFT_DOWN BUTTON_PREV +#define PONG_RIGHT_UP BUTTON_PLAY +#define PONG_RIGHT_DOWN BUTTON_NEXT + #else #error No keymap defined! #endif diff --git a/apps/plugins/rockblox1d.c b/apps/plugins/rockblox1d.c index 245035bad3..d34087ab61 100644 --- a/apps/plugins/rockblox1d.c +++ b/apps/plugins/rockblox1d.c @@ -113,6 +113,10 @@ PLUGIN_HEADER #define ONEDROCKBLOX_DOWN BUTTON_DOWN #define ONEDROCKBLOX_QUIT BUTTON_PLAY +#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) +#define ONEDROCKBLOX_DOWN BUTTON_DOWN +#define ONEDROCKBLOX_QUIT BUTTON_REC + #elif defined(HAVE_TOUCHSCREEN) #define ONEDROCKBLOX_DOWN BUTTON_BOTTOMMIDDLE diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index 593ce828b4..ba60b14f72 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c @@ -268,6 +268,18 @@ static void setoptions (void) options.SELECT=BUTTON_FFWD; options.MENU=BUTTON_NONE; +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD + options.UP= BUTTON_OK; + options.DOWN= BUTTON_CANCEL; + options.LEFT= BUTTON_PREV; + options.RIGHT= BUTTON_NEXT; + + options.A= BUTTON_POWER; + options.B= BUTTON_REC; + options.START= BUTTON_PLAY; + options.SELECT= BUTTON_UP; + options.MENU= BUTTON_MENU; + #else #error No Keymap Defined! #endif diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index 57a23a34bd..96de7abab1 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c @@ -187,6 +187,17 @@ PLUGIN_HEADER #define ROCKPAINT_LEFT BUTTON_LEFT #define ROCKPAINT_RIGHT BUTTON_RIGHT +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define ROCKPAINT_QUIT BUTTON_REC +#define ROCKPAINT_DRAW BUTTON_PLAY +#define ROCKPAINT_MENU BUTTON_MENU +#define ROCKPAINT_TOOLBAR BUTTON_OK +#define ROCKPAINT_TOOLBAR2 BUTTON_CANCEL +#define ROCKPAINT_UP BUTTON_UP +#define ROCKPAINT_DOWN BUTTON_DOWN +#define ROCKPAINT_LEFT BUTTON_PREV +#define ROCKPAINT_RIGHT BUTTON_NEXT + #else #error "Please define keys for this keypad" #endif diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c index 110f830aa1..0f5f5fd722 100644 --- a/apps/plugins/sliding_puzzle.c +++ b/apps/plugins/sliding_puzzle.c @@ -212,6 +212,15 @@ CONFIG_KEYPAD == MROBE500_PAD #define PUZZLE_SHUFFLE BUTTON_REW #define PUZZLE_PICTURE BUTTON_PLAY +#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) +#define PUZZLE_QUIT BUTTON_REC +#define PUZZLE_LEFT BUTTON_PREV +#define PUZZLE_RIGHT BUTTON_NEXT +#define PUZZLE_UP BUTTON_UP +#define PUZZLE_DOWN BUTTON_DOWN +#define PUZZLE_SHUFFLE BUTTON_CANCEL +#define PUZZLE_PICTURE BUTTON_MENU + #else #error No keymap defined! #endif diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c index c32873fbc2..a7e75c00c9 100644 --- a/apps/plugins/snake.c +++ b/apps/plugins/snake.c @@ -199,6 +199,14 @@ PLUGIN_HEADER #elif CONFIG_KEYPAD == COWON_D2_PAD #define SNAKE_QUIT BUTTON_POWER +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define SNAKE_QUIT BUTTON_REC +#define SNAKE_LEFT BUTTON_PREV +#define SNAKE_RIGHT BUTTON_NEXT +#define SNAKE_UP BUTTON_UP +#define SNAKE_DOWN BUTTON_DOWN +#define SNAKE_PLAYPAUSE BUTTON_PLAY + #else #error No keymap defined! #endif diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c index a5b9f00d8e..e0393ba8af 100644 --- a/apps/plugins/snake2.c +++ b/apps/plugins/snake2.c @@ -308,6 +308,15 @@ CONFIG_KEYPAD == MROBE500_PAD #define SNAKE2_PLAYPAUSE BUTTON_PLAY #define SNAKE2_PLAYPAUSE_TEXT "Play" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define SNAKE2_LEFT BUTTON_PREV +#define SNAKE2_RIGHT BUTTON_NEXT +#define SNAKE2_UP BUTTON_UP +#define SNAKE2_DOWN BUTTON_DOWN +#define SNAKE2_QUIT BUTTON_REC +#define SNAKE2_PLAYPAUSE BUTTON_PLAY +#define SNAKE2_PLAYPAUSE_TEXT "Play" + #else #error No keymap defined! #endif diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index b9e0aa1d2e..e7b22197e6 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c @@ -422,6 +422,21 @@ PLUGIN_HEADER #define BUTTON_SAVE BUTTON_PLAY #define BUTTON_SAVE_NAME "PLAY" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define SOKOBAN_LEFT BUTTON_PREV +#define SOKOBAN_RIGHT BUTTON_NEXT +#define SOKOBAN_UP BUTTON_UP +#define SOKOBAN_DOWN BUTTON_DOWN +#define SOKOBAN_MENU BUTTON_REC +#define SOKOBAN_UNDO BUTTON_CANCEL +#define SOKOBAN_REDO BUTTON_OK +#define SOKOBAN_LEVEL_DOWN (BUTTON_OK | BUTTON_PREV) +#define SOKOBAN_LEVEL_REPEAT (BUTTON_OK | BUTTON_CANCEL) +#define SOKOBAN_LEVEL_UP (BUTTON_OK | BUTTON_NEXT) +#define SOKOBAN_PAUSE BUTTON_PLAY +#define BUTTON_SAVE BUTTON_MENU +#define BUTTON_SAVE_NAME "MENU" + #else #error No keymap defined! #endif diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 8d0b12eba6..f40c761024 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -411,7 +411,7 @@ PLUGIN_HEADER # define HK_DRAW "MENU" # define HK_REM2CUR "LEFT" # define HK_CUR2STACK "PLAY..." -# define REM2STACK "RIGHT" +# define HK_REM2STACK "RIGHT" #elif (CONFIG_KEYPAD == ONDAVX747_PAD) || \ (CONFIG_KEYPAD == ONDAVX777_PAD) || \ @@ -439,6 +439,24 @@ CONFIG_KEYPAD == MROBE500_PAD # define HK_CUR2STACK "REW" # define HK_REM2STACK "FFWD.." +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +# define SOL_QUIT BUTTON_REC +# define SOL_UP BUTTON_UP +# define SOL_DOWN BUTTON_DOWN +# define SOL_LEFT BUTTON_PREV +# define SOL_RIGHT BUTTON_NEXT +# define SOL_MOVE_PRE BUTTON_OK +# define SOL_MOVE (BUTTON_OK | BUTTON_REL) +# define SOL_DRAW BUTTON_MENU +# define SOL_REM2CUR BUTTON_CANCEL +# define SOL_CUR2STACK BUTTON_PLAY +# define SOL_REM2STACK (BUTTON_PLAY | BUTTON_REPEAT) +# define HK_MOVE "OK" +# define HK_DRAW "MENU" +# define HK_REM2CUR "CANCEL" +# define HK_CUR2STACK "PLAY" +# define HK_REM2STACK "PLAY..." + #else #error No keymap defined! #endif diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 4bcb75366c..361caa1b99 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c @@ -220,6 +220,15 @@ PLUGIN_HEADER #define AST_RIGHT BUTTON_RIGHT #define AST_FIRE BUTTON_PLAY +#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) +#define AST_PAUSE BUTTON_PLAY +#define AST_QUIT BUTTON_REC +#define AST_THRUST BUTTON_UP +#define AST_HYPERSPACE BUTTON_DOWN +#define AST_LEFT BUTTON_PREV +#define AST_RIGHT BUTTON_NEXT +#define AST_FIRE BUTTON_OK + #else #error No keymap defined! #endif diff --git a/apps/plugins/star.c b/apps/plugins/star.c index efd2dae6fe..c714601542 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -376,6 +376,23 @@ PLUGIN_HEADER #define STAR_LEVEL_DOWN_NAME "DOWN" #define STAR_LEVEL_REPEAT_NAME "PLAY" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD + +#define STAR_QUIT BUTTON_REC +#define STAR_LEFT BUTTON_PREV +#define STAR_RIGHT BUTTON_NEXT +#define STAR_UP BUTTON_UP +#define STAR_DOWN BUTTON_DOWN +#define STAR_TOGGLE_CONTROL BUTTON_PLAY +#define STAR_LEVEL_UP BUTTON_OK +#define STAR_LEVEL_DOWN BUTTON_CANCEL +#define STAR_LEVEL_REPEAT BUTTON_MENU +#define STAR_TOGGLE_CONTROL_NAME "PLAY" +#define STAR_QUIT_NAME "REC" +#define STAR_LEVEL_UP_NAME "OK" +#define STAR_LEVEL_DOWN_NAME "CANCEL" +#define STAR_LEVEL_REPEAT_NAME "MENU" + #else #error No keymap defined! #endif diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 01d0acfb4a..4b3b0878ad 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c @@ -150,6 +150,14 @@ PLUGIN_HEADER #define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT #define STARFIELD_TOGGLE_COLOR BUTTON_PLAY +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define STARFIELD_QUIT BUTTON_REC +#define STARFIELD_INCREASE_ZMOVE BUTTON_UP +#define STARFIELD_DECREASE_ZMOVE BUTTON_DOWN +#define STARFIELD_INCREASE_NB_STARS BUTTON_NEXT +#define STARFIELD_DECREASE_NB_STARS BUTTON_PREV +#define STARFIELD_TOGGLE_COLOR BUTTON_PLAY + #endif #ifdef HAVE_TOUCHSCREEN diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index f38db8d1f4..0018b9c91f 100644 --- a/apps/plugins/superdom.c +++ b/apps/plugins/superdom.c @@ -158,6 +158,14 @@ char buf[255]; #define SUPERDOM_RIGHT BUTTON_RIGHT #define SUPERDOM_CANCEL BUTTON_REW +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define SUPERDOM_OK BUTTON_OK +#define SUPERDOM_UP BUTTON_UP +#define SUPERDOM_DOWN BUTTON_DOWN +#define SUPERDOM_LEFT BUTTON_PREV +#define SUPERDOM_RIGHT BUTTON_NEXT +#define SUPERDOM_CANCEL BUTTON_CANCEL + #endif #ifdef HAVE_TOUCHSCREEN diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index b48c46192f..f3473c84d7 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c @@ -272,6 +272,17 @@ PLUGIN_HEADER #define LABEL_MENU "LEFT" #define LABEL_VOLUME "UP/DOWN" +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD +#define VUMETER_QUIT BUTTON_REC +#define VUMETER_HELP BUTTON_PLAY +#define VUMETER_MENU BUTTON_MENU +#define VUMETER_UP BUTTON_UP +#define VUMETER_DOWN BUTTON_DOWN +#define LABEL_HELP "PLAY" +#define LABEL_QUIT "REC" +#define LABEL_MENU "MENU" +#define LABEL_VOLUME "UP/DOWN" + #else #error No keymap defined! #endif diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index 5a897be086..3324d6c507 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c @@ -258,6 +258,16 @@ CONFIG_KEYPAD == MROBE500_PAD #define BTN_QUIT BUTTON_FFWD #define BTN_STOPRESET BUTTON_REW +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD + +#define BTN_DIR_UP BUTTON_UP +#define BTN_DIR_DOWN BUTTON_DOWN +#define BTN_DIR_LEFT BUTTON_PREV +#define BTN_DIR_RIGHT BUTTON_NEXT +#define BTN_STARTPAUSE BUTTON_PLAY +#define BTN_QUIT BUTTON_REC +#define BTN_STOPRESET BUTTON_CANCEL + #else #error No keymap defined! #endif diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index 81e0e6ae15..6edc629144 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c @@ -223,6 +223,15 @@ CONFIG_KEYPAD == MROBE500_PAD #define DOWN BUTTON_DOWN #define PAUSE BUTTON_FFWD +#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD + +#define QUIT BUTTON_REC +#define LEFT BUTTON_PREV +#define RIGHT BUTTON_NEXT +#define UP BUTTON_UP +#define DOWN BUTTON_DOWN +#define PAUSE BUTTON_PLAY + #else #error No keymap defined! #endif