attempt to make the Gigabeat button mappings in the plugins more logical and in line with the mapping in rockbox itself
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13436 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e09b87a31f
commit
a7168feeac
44 changed files with 116 additions and 112 deletions
|
@ -72,8 +72,8 @@ PLUGIN_HEADER
|
|||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define BOUNCE_UP BUTTON_UP
|
||||
#define BOUNCE_DOWN BUTTON_DOWN
|
||||
#define BOUNCE_QUIT BUTTON_A
|
||||
#define BOUNCE_MODE BUTTON_POWER
|
||||
#define BOUNCE_QUIT BUTTON_POWER
|
||||
#define BOUNCE_MODE BUTTON_A
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define BOUNCE_UP BUTTON_SCROLL_UP
|
||||
|
|
|
@ -92,7 +92,7 @@ PLUGIN_HEADER
|
|||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
|
||||
#define QUIT BUTTON_A
|
||||
#define QUIT BUTTON_POWER
|
||||
#define LEFT BUTTON_LEFT
|
||||
#define RIGHT BUTTON_RIGHT
|
||||
#define SELECT BUTTON_SELECT
|
||||
|
|
|
@ -169,11 +169,11 @@ PLUGIN_HEADER
|
|||
|
||||
#define CALCULATOR_UP BUTTON_UP
|
||||
#define CALCULATOR_DOWN BUTTON_DOWN
|
||||
#define CALCULATOR_QUIT BUTTON_A
|
||||
#define CALCULATOR_QUIT BUTTON_POWER
|
||||
#define CALCULATOR_INPUT_CALC_PRE BUTTON_MENU
|
||||
#define CALCULATOR_INPUT (BUTTON_MENU | BUTTON_REL)
|
||||
#define CALCULATOR_CALC BUTTON_SELECT
|
||||
#define CALCULATOR_CLEAR BUTTON_POWER
|
||||
#define CALCULATOR_CLEAR BUTTON_A
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define CALCULATOR_UP BUTTON_UP
|
||||
|
|
|
@ -126,9 +126,10 @@ PLUGIN_HEADER
|
|||
#define CB_DOWN BUTTON_DOWN
|
||||
#define CB_LEFT BUTTON_LEFT
|
||||
#define CB_RIGHT BUTTON_RIGHT
|
||||
#define CB_PLAY BUTTON_POWER
|
||||
#define CB_LEVEL BUTTON_MENU
|
||||
#define CB_MENU BUTTON_A
|
||||
#define CB_PLAY BUTTON_A
|
||||
#define CB_LEVEL BUTTON_VOL_UP
|
||||
#define CB_RESTART BUTTON_VOL_DOWN
|
||||
#define CB_MENU BUTTON_MENU
|
||||
|
||||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||
#define CB_SELECT BUTTON_REW
|
||||
|
|
|
@ -109,14 +109,14 @@ PLUGIN_HEADER
|
|||
#define CHC_SETTINGS_CANCEL BUTTON_REC
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define CHC_QUIT BUTTON_A
|
||||
#define CHC_QUIT BUTTON_POWER
|
||||
#define CHC_STARTSTOP BUTTON_SELECT
|
||||
#define CHC_RESET BUTTON_POWER
|
||||
#define CHC_RESET BUTTON_A
|
||||
#define CHC_MENU BUTTON_MENU
|
||||
#define CHC_SETTINGS_INC BUTTON_RIGHT
|
||||
#define CHC_SETTINGS_DEC BUTTON_LEFT
|
||||
#define CHC_SETTINGS_OK BUTTON_MENU
|
||||
#define CHC_SETTINGS_CANCEL BUTTON_A
|
||||
#define CHC_SETTINGS_INC BUTTON_UP
|
||||
#define CHC_SETTINGS_DEC BUTTON_DOWN
|
||||
#define CHC_SETTINGS_OK BUTTON_SELECT
|
||||
#define CHC_SETTINGS_CANCEL BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define CHC_QUIT BUTTON_POWER
|
||||
|
|
|
@ -1008,12 +1008,16 @@ STATIC void chip8 (void)
|
|||
#define CHIP8_KEY8 BUTTON_DOWN
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define CHIP8_OFF BUTTON_A
|
||||
#define CHIP8_OFF BUTTON_POWER
|
||||
#define CHIP8_KEY1 BUTTON_MENU
|
||||
#define CHIP8_KEY2 BUTTON_UP
|
||||
#define CHIP8_KEY3 BUTTON_VOL_DOWN
|
||||
#define CHIP8_KEY4 BUTTON_LEFT
|
||||
#define CHIP8_KEY5 BUTTON_MENU
|
||||
#define CHIP8_KEY5 BUTTON_SELECT
|
||||
#define CHIP8_KEY6 BUTTON_RIGHT
|
||||
#define CHIP8_KEY7 BUTTON_VOL_UP
|
||||
#define CHIP8_KEY8 BUTTON_DOWN
|
||||
#define CHIP8_KEY9 BUTTON_A
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define CHIP8_OFF BUTTON_POWER
|
||||
|
|
|
@ -135,17 +135,16 @@ PLUGIN_HEADER
|
|||
#define CUBE_HIGHSPEED (BUTTON_REC | BUTTON_REL)
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define CUBE_QUIT BUTTON_A
|
||||
#define CUBE_QUIT BUTTON_POWER
|
||||
#define CUBE_X_INC BUTTON_LEFT
|
||||
#define CUBE_X_DEC BUTTON_RIGHT
|
||||
#define CUBE_Y_INC BUTTON_UP
|
||||
#define CUBE_Y_DEC BUTTON_DOWN
|
||||
#define CUBE_Z_INC (BUTTON_POWER | BUTTON_UP)
|
||||
#define CUBE_Z_DEC (BUTTON_POWER | BUTTON_DOWN)
|
||||
#define CUBE_Z_INC BUTTON_VOL_UP
|
||||
#define CUBE_Z_DEC BUTTON_VOL_DOWN
|
||||
#define CUBE_MODE BUTTON_MENU
|
||||
#define CUBE_PAUSE_PRE BUTTON_SELECT
|
||||
#define CUBE_PAUSE (BUTTON_SELECT | BUTTON_REL)
|
||||
#define CUBE_HIGHSPEED (BUTTON_POWER | BUTTON_REL)
|
||||
#define CUBE_PAUSE BUTTON_SELECT
|
||||
#define CUBE_HIGHSPEED BUTTON_A
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
#define CUBE_QUIT BUTTON_POWER
|
||||
|
|
|
@ -52,7 +52,7 @@ PLUGIN_HEADER
|
|||
#define DEMYSTIFY_INCREASE_SPEED BUTTON_UP
|
||||
#define DEMYSTIFY_DECREASE_SPEED BUTTON_DOWN
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define DEMYSTIFY_QUIT BUTTON_A
|
||||
#define DEMYSTIFY_QUIT BUTTON_POWER
|
||||
#define DEMYSTIFY_ADD_POLYGON BUTTON_RIGHT
|
||||
#define DEMYSTIFY_REMOVE_POLYGON BUTTON_LEFT
|
||||
#define DEMYSTIFY_INCREASE_SPEED BUTTON_UP
|
||||
|
|
|
@ -89,8 +89,8 @@ use stop to exit
|
|||
#define DICE_BUTTON_SELECT BUTTON_SELECT
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define DICE_BUTTON_ON BUTTON_POWER
|
||||
#define DICE_BUTTON_OFF BUTTON_A
|
||||
#define DICE_BUTTON_ON BUTTON_A
|
||||
#define DICE_BUTTON_OFF BUTTON_POWER
|
||||
#define DICE_BUTTON_SELECT BUTTON_SELECT
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
|
|
|
@ -112,7 +112,7 @@ long reverse (long N) {
|
|||
#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
|
||||
#define LP_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define LP_QUIT BUTTON_A
|
||||
#define LP_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define LP_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||
|
|
|
@ -63,7 +63,7 @@ enum tidy_system
|
|||
#define TIDY_STOP BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define TIDY_STOP BUTTON_A
|
||||
#define TIDY_STOP BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define TIDY_STOP BUTTON_POWER
|
||||
|
|
|
@ -88,7 +88,7 @@ static unsigned char draw_buffer[8*LCD_WIDTH];
|
|||
#define FIRE_DECREASE_MULT BUTTON_DOWN
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define FIRE_QUIT BUTTON_A
|
||||
#define FIRE_QUIT BUTTON_POWER
|
||||
#define FIRE_SWITCH_FLAMES_TYPE BUTTON_LEFT
|
||||
#define FIRE_SWITCH_FLAMES_MOVING BUTTON_RIGHT
|
||||
#define FIRE_INCREASE_MULT BUTTON_UP
|
||||
|
|
|
@ -100,11 +100,11 @@ PLUGIN_HEADER
|
|||
|
||||
#define FLIPIT_UP BUTTON_UP
|
||||
#define FLIPIT_DOWN BUTTON_DOWN
|
||||
#define FLIPIT_QUIT BUTTON_A
|
||||
#define FLIPIT_SHUFFLE (BUTTON_POWER | BUTTON_LEFT)
|
||||
#define FLIPIT_SOLVE (BUTTON_POWER | BUTTON_RIGHT)
|
||||
#define FLIPIT_STEP_BY_STEP (BUTTON_POWER | BUTTON_UP)
|
||||
#define FLIPIT_TOGGLE BUTTON_MENU
|
||||
#define FLIPIT_QUIT BUTTON_POWER
|
||||
#define FLIPIT_SHUFFLE BUTTON_MENU
|
||||
#define FLIPIT_SOLVE BUTTON_VOL_UP
|
||||
#define FLIPIT_STEP_BY_STEP BUTTON_VOL_DOWN
|
||||
#define FLIPIT_TOGGLE BUTTON_SELECT
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
|
||||
|
@ -510,11 +510,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->lcd_putsxy(2, 38, "[PLAY..] solution");
|
||||
rb->lcd_putsxy(2, 48, "[PLAY] step by step");
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
rb->lcd_putsxy(2, 8, "[A] to stop");
|
||||
rb->lcd_putsxy(2, 18, "[MENU] toggle");
|
||||
rb->lcd_putsxy(2, 28, "[P-LEFT] shuffle");
|
||||
rb->lcd_putsxy(2, 38, "[P-RIGHT] solution");
|
||||
rb->lcd_putsxy(2, 48, "[P-UP] step by step");
|
||||
rb->lcd_putsxy(2, 8, "[POWER] to stop");
|
||||
rb->lcd_putsxy(2, 18, "[SELECT] toggle");
|
||||
rb->lcd_putsxy(2, 28, "[MENU] shuffle");
|
||||
rb->lcd_putsxy(2, 38, "[VOL+] solution");
|
||||
rb->lcd_putsxy(2, 48, "[VOL-] step by step");
|
||||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||
rb->lcd_putsxy(2, 8, "[POWER] to stop");
|
||||
rb->lcd_putsxy(2, 18, "[REW] toggle");
|
||||
|
|
|
@ -85,7 +85,7 @@ PLUGIN_HEADER
|
|||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
|
||||
#define QUIT BUTTON_A
|
||||
#define QUIT BUTTON_POWER
|
||||
#define LEFT BUTTON_LEFT
|
||||
#define RIGHT BUTTON_RIGHT
|
||||
#define FIRE BUTTON_SELECT
|
||||
|
|
|
@ -92,7 +92,7 @@ PLUGIN_HEADER
|
|||
#define JEWELS_LEFT BUTTON_LEFT
|
||||
#define JEWELS_RIGHT BUTTON_RIGHT
|
||||
#define JEWELS_SELECT BUTTON_SELECT
|
||||
#define JEWELS_CANCEL BUTTON_A
|
||||
#define JEWELS_CANCEL BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define JEWELS_UP BUTTON_UP
|
||||
|
@ -1306,7 +1306,7 @@ static int jewels_main(struct game_context* bj) {
|
|||
rb->lcd_puts(0, 8, "Directions to move");
|
||||
rb->lcd_puts(0, 9, "SELECT to select");
|
||||
rb->lcd_puts(0, 10, "Long SELECT to show menu");
|
||||
rb->lcd_puts(0, 11, "A to cancel");
|
||||
rb->lcd_puts(0, 11, "POWER to cancel");
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
rb->lcd_puts(0, 2, "Swap pairs of jewels to");
|
||||
rb->lcd_puts(0, 3, "form connected segments");
|
||||
|
|
|
@ -121,9 +121,9 @@ PLUGIN_HEADER
|
|||
#define JPEG_DOWN BUTTON_DOWN
|
||||
#define JPEG_LEFT BUTTON_LEFT
|
||||
#define JPEG_RIGHT BUTTON_RIGHT
|
||||
#define JPEG_MENU BUTTON_A
|
||||
#define JPEG_NEXT (BUTTON_POWER | BUTTON_RIGHT)
|
||||
#define JPEG_PREVIOUS (BUTTON_POWER | BUTTON_LEFT)
|
||||
#define JPEG_MENU BUTTON_MENU
|
||||
#define JPEG_NEXT (BUTTON_A | BUTTON_RIGHT)
|
||||
#define JPEG_PREVIOUS (BUTTON_A | BUTTON_LEFT)
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define JPEG_ZOOM_PRE BUTTON_SELECT
|
||||
|
|
|
@ -203,7 +203,7 @@ const unsigned char rockbox16x7[] = {
|
|||
#define LP_DEC_Y BUTTON_DOWN
|
||||
#define LP_INC_Y BUTTON_UP
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define LP_QUIT BUTTON_A
|
||||
#define LP_QUIT BUTTON_POWER
|
||||
#define LP_DEC_X BUTTON_LEFT
|
||||
#define LP_INC_X BUTTON_RIGHT
|
||||
#define LP_DEC_Y BUTTON_DOWN
|
||||
|
|
|
@ -107,17 +107,17 @@ PLUGIN_HEADER
|
|||
#define MANDELBROT_RESET BUTTON_REC
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define MANDELBROT_QUIT BUTTON_A
|
||||
#define MANDELBROT_QUIT BUTTON_POWER
|
||||
#define MANDELBROT_UP BUTTON_UP
|
||||
#define MANDELBROT_DOWN BUTTON_DOWN
|
||||
#define MANDELBROT_LEFT BUTTON_LEFT
|
||||
#define MANDELBROT_RIGHT BUTTON_RIGHT
|
||||
#define MANDELBROT_ZOOM_IN_PRE BUTTON_MENU
|
||||
#define MANDELBROT_ZOOM_IN (BUTTON_MENU | BUTTON_REL)
|
||||
#define MANDELBROT_ZOOM_OUT (BUTTON_MENU | BUTTON_REPEAT)
|
||||
#define MANDELBROT_MAXITER_INC (BUTTON_POWER | BUTTON_RIGHT)
|
||||
#define MANDELBROT_MAXITER_DEC (BUTTON_POWER | BUTTON_LEFT)
|
||||
#define MANDELBROT_RESET BUTTON_SELECT
|
||||
#define MANDELBROT_ZOOM_IN_PRE BUTTON_SELECT
|
||||
#define MANDELBROT_ZOOM_IN (BUTTON_SELECT | BUTTON_REL)
|
||||
#define MANDELBROT_ZOOM_OUT (BUTTON_SELECT | BUTTON_REPEAT)
|
||||
#define MANDELBROT_MAXITER_INC BUTTON_VOL_UP
|
||||
#define MANDELBROT_MAXITER_DEC BUTTON_VOL_DOWN
|
||||
#define MANDELBROT_RESET BUTTON_A
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define MANDELBROT_QUIT BUTTON_POWER
|
||||
|
|
|
@ -107,10 +107,10 @@ static struct plugin_api* rb;
|
|||
#define MAZEZAM_RIGHT BUTTON_RIGHT
|
||||
#define MAZEZAM_SELECT BUTTON_SELECT
|
||||
|
||||
#define MAZEZAM_RETRY BUTTON_MENU
|
||||
#define MAZEZAM_RETRY_KEYNAME "[MENU]"
|
||||
#define MAZEZAM_QUIT BUTTON_A
|
||||
#define MAZEZAM_QUIT_KEYNAME "[A]"
|
||||
#define MAZEZAM_RETRY BUTTON_A
|
||||
#define MAZEZAM_RETRY_KEYNAME "[A]"
|
||||
#define MAZEZAM_QUIT BUTTON_POWER
|
||||
#define MAZEZAM_QUIT_KEYNAME "[POWER]"
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
#define MAZEZAM_UP BUTTON_UP
|
||||
|
|
|
@ -51,8 +51,8 @@ PLUGIN_IRAM_DECLARE
|
|||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define BTN_QUIT BUTTON_POWER
|
||||
#define BTN_RIGHT BUTTON_RIGHT
|
||||
#define BTN_UP BUTTON_VOL_UP
|
||||
#define BTN_DOWN BUTTON_VOL_DOWN
|
||||
#define BTN_UP BUTTON_UP
|
||||
#define BTN_DOWN BUTTON_DOWN
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
#define BTN_QUIT BUTTON_POWER
|
||||
|
|
|
@ -98,9 +98,9 @@ enum minesweeper_status {
|
|||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
# define MINESWP_UP BUTTON_UP
|
||||
# define MINESWP_DOWN BUTTON_DOWN
|
||||
# define MINESWP_QUIT BUTTON_A
|
||||
# define MINESWP_QUIT BUTTON_POWER
|
||||
# define MINESWP_START BUTTON_SELECT
|
||||
# define MINESWP_TOGGLE BUTTON_POWER
|
||||
# define MINESWP_TOGGLE BUTTON_A
|
||||
# define MINESWP_DISCOVER BUTTON_SELECT
|
||||
# define MINESWP_INFO BUTTON_MENU
|
||||
|
||||
|
|
|
@ -86,8 +86,8 @@ PLUGIN_HEADER
|
|||
#define MOSAIQUE_RESTART BUTTON_PLAY
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define MOSAIQUE_QUIT BUTTON_A
|
||||
#define MOSAIQUE_SPEED BUTTON_MENU
|
||||
#define MOSAIQUE_QUIT BUTTON_POWER
|
||||
#define MOSAIQUE_SPEED BUTTON_A
|
||||
#define MOSAIQUE_RESTART BUTTON_SELECT
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
|
|
|
@ -2339,7 +2339,7 @@ void get_mp3_filename(char *wav_name)
|
|||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define MP3ENC_PREV BUTTON_UP
|
||||
#define MP3ENC_NEXT BUTTON_DOWN
|
||||
#define MP3ENC_DONE BUTTON_A
|
||||
#define MP3ENC_DONE BUTTON_POWER
|
||||
#define MP3ENC_SELECT BUTTON_SELECT
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define MP3ENC_PREV BUTTON_UP
|
||||
|
|
|
@ -137,7 +137,7 @@ PLUGIN_IRAM_DECLARE
|
|||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define MPEG_MENU BUTTON_MENU
|
||||
#define MPEG_STOP BUTTON_A
|
||||
#define MPEG_STOP BUTTON_POWER
|
||||
#define MPEG_PAUSE BUTTON_SELECT
|
||||
#define MPEG_VOLDOWN BUTTON_LEFT
|
||||
#define MPEG_VOLUP BUTTON_RIGHT
|
||||
|
|
|
@ -92,8 +92,8 @@ PLUGIN_HEADER
|
|||
#define PONG_RIGHT_DOWN BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define PONG_QUIT BUTTON_A
|
||||
#define PONG_PAUSE BUTTON_MENU
|
||||
#define PONG_QUIT BUTTON_POWER
|
||||
#define PONG_PAUSE BUTTON_SELECT
|
||||
#define PONG_LEFT_UP BUTTON_UP
|
||||
#define PONG_LEFT_DOWN BUTTON_DOWN
|
||||
#define PONG_RIGHT_UP BUTTON_VOL_UP
|
||||
|
|
|
@ -131,15 +131,15 @@ PLUGIN_HEADER
|
|||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
|
||||
#define ROCKBLOX_OFF BUTTON_A
|
||||
#define ROCKBLOX_OFF BUTTON_POWER
|
||||
#define ROCKBLOX_ROTATE_RIGHT BUTTON_VOL_DOWN
|
||||
#define ROCKBLOX_ROTATE_LEFT BUTTON_VOL_UP
|
||||
#define ROCKBLOX_ROTATE BUTTON_UP
|
||||
#define ROCKBLOX_ROTATE BUTTON_UP
|
||||
#define ROCKBLOX_DOWN BUTTON_DOWN
|
||||
#define ROCKBLOX_LEFT BUTTON_LEFT
|
||||
#define ROCKBLOX_RIGHT BUTTON_RIGHT
|
||||
#define ROCKBLOX_DROP BUTTON_SELECT
|
||||
#define ROCKBLOX_RESTART BUTTON_MENU
|
||||
#define ROCKBLOX_RESTART BUTTON_A
|
||||
|
||||
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ void setoptions (void)
|
|||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
options.A=BUTTON_VOL_UP;
|
||||
options.B=BUTTON_VOL_DOWN;
|
||||
options.START=BUTTON_POWER;
|
||||
options.START=BUTTON_A;
|
||||
options.SELECT=BUTTON_SELECT;
|
||||
options.MENU=BUTTON_MENU;
|
||||
|
||||
|
|
|
@ -71,11 +71,11 @@ PLUGIN_HEADER
|
|||
#define ROCKPAINT_RIGHT BUTTON_RIGHT
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define ROCKPAINT_QUIT BUTTON_A
|
||||
#define ROCKPAINT_QUIT BUTTON_POWER
|
||||
#define ROCKPAINT_DRAW BUTTON_SELECT
|
||||
#define ROCKPAINT_MENU BUTTON_MENU
|
||||
#define ROCKPAINT_TOOLBAR BUTTON_POWER
|
||||
#define ROCKPAINT_TOOLBAR2 ( BUTTON_POWER | BUTTON_LEFT )
|
||||
#define ROCKPAINT_TOOLBAR BUTTON_A
|
||||
#define ROCKPAINT_TOOLBAR2 ( BUTTON_A | BUTTON_LEFT )
|
||||
#define ROCKPAINT_UP BUTTON_UP
|
||||
#define ROCKPAINT_DOWN BUTTON_DOWN
|
||||
#define ROCKPAINT_LEFT BUTTON_LEFT
|
||||
|
|
|
@ -70,11 +70,11 @@ PLUGIN_HEADER
|
|||
#define PUZZLE_PICTURE BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define PUZZLE_QUIT BUTTON_A
|
||||
#define PUZZLE_QUIT BUTTON_POWER
|
||||
#define PUZZLE_UP BUTTON_UP
|
||||
#define PUZZLE_DOWN BUTTON_DOWN
|
||||
#define PUZZLE_SHUFFLE BUTTON_SELECT
|
||||
#define PUZZLE_PICTURE BUTTON_POWER
|
||||
#define PUZZLE_PICTURE BUTTON_A
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
#define PUZZLE_QUIT BUTTON_POWER
|
||||
|
|
|
@ -77,7 +77,7 @@ PLUGIN_HEADER
|
|||
#define SNAKE_PLAYPAUSE BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define SNAKE_QUIT BUTTON_A
|
||||
#define SNAKE_QUIT BUTTON_POWER
|
||||
#define SNAKE_UP BUTTON_UP
|
||||
#define SNAKE_DOWN BUTTON_DOWN
|
||||
#define SNAKE_PLAYPAUSE BUTTON_SELECT
|
||||
|
|
|
@ -222,7 +222,7 @@ PLUGIN_HEADER
|
|||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define SNAKE2_UP BUTTON_UP
|
||||
#define SNAKE2_DOWN BUTTON_DOWN
|
||||
#define SNAKE2_QUIT BUTTON_A
|
||||
#define SNAKE2_QUIT BUTTON_POWER
|
||||
#define SNAKE2_LEVEL_UP BUTTON_UP
|
||||
#define SNAKE2_LEVEL_DOWN BUTTON_DOWN
|
||||
#define SNAKE2_MAZE_NEXT BUTTON_RIGHT
|
||||
|
|
|
@ -44,7 +44,7 @@ PLUGIN_HEADER
|
|||
#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
|
||||
#define SNOW_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define SNOW_QUIT BUTTON_A
|
||||
#define SNOW_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define SNOW_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||
|
|
|
@ -136,11 +136,11 @@ enum {
|
|||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define SOKOBAN_UP BUTTON_UP
|
||||
#define SOKOBAN_DOWN BUTTON_DOWN
|
||||
#define SOKOBAN_QUIT BUTTON_A
|
||||
#define SOKOBAN_QUIT BUTTON_POWER
|
||||
#define SOKOBAN_UNDO BUTTON_SELECT
|
||||
#define SOKOBAN_REDO BUTTON_POWER
|
||||
#define SOKOBAN_LEVEL_UP (BUTTON_MENU | BUTTON_UP)
|
||||
#define SOKOBAN_LEVEL_DOWN (BUTTON_MENU | BUTTON_DOWN)
|
||||
#define SOKOBAN_REDO BUTTON_A
|
||||
#define SOKOBAN_LEVEL_UP BUTTON_VOL_UP
|
||||
#define SOKOBAN_LEVEL_DOWN BUTTON_VOL_DOWN
|
||||
#define SOKOBAN_LEVEL_REPEAT BUTTON_MENU
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
|
@ -967,12 +967,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->lcd_putsxy(3, 26, "[REC] Down a Level");
|
||||
rb->lcd_putsxy(3, 36, "[PLAY] Up Level");
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
rb->lcd_putsxy(3, 6, "[A] Quit");
|
||||
rb->lcd_putsxy(3, 6, "[POWER] Quit");
|
||||
rb->lcd_putsxy(3, 16, "[SELECT] Undo");
|
||||
rb->lcd_putsxy(3, 26, "[POWER] Redo");
|
||||
rb->lcd_putsxy(3, 36, "[MENU+DOWN] Down a Level");
|
||||
rb->lcd_putsxy(3, 26, "[A] Redo");
|
||||
rb->lcd_putsxy(3, 36, "[VOL-] Down a Level");
|
||||
rb->lcd_putsxy(3, 46, "[MENU] Restart Level");
|
||||
rb->lcd_putsxy(3, 56, "[MENU+UP] Up Level");
|
||||
rb->lcd_putsxy(3, 56, "[VOL+] Up Level");
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
rb->lcd_putsxy(3, 6, "[POWER] Quit");
|
||||
rb->lcd_putsxy(3, 16, "[SELECT] Undo");
|
||||
|
|
|
@ -177,7 +177,7 @@ static struct plugin_api* rb;
|
|||
# define HK_REM2STACK "REC"
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
# define SOL_QUIT BUTTON_A
|
||||
# define SOL_QUIT BUTTON_POWER
|
||||
# define SOL_UP BUTTON_UP
|
||||
# define SOL_DOWN BUTTON_DOWN
|
||||
# define SOL_LEFT BUTTON_LEFT
|
||||
|
@ -185,14 +185,14 @@ static struct plugin_api* rb;
|
|||
# define SOL_MOVE_PRE BUTTON_SELECT
|
||||
# define SOL_MOVE (BUTTON_SELECT | BUTTON_REL)
|
||||
# define SOL_DRAW BUTTON_MENU
|
||||
# define SOL_REM2CUR (BUTTON_LEFT | BUTTON_POWER)
|
||||
# define SOL_REM2CUR (BUTTON_LEFT | BUTTON_A)
|
||||
# define SOL_CUR2STACK (BUTTON_SELECT | BUTTON_REPEAT)
|
||||
# define SOL_REM2STACK (BUTTON_RIGHT | BUTTON_POWER)
|
||||
# define SOL_REM2STACK (BUTTON_RIGHT | BUTTON_A)
|
||||
# define HK_MOVE "SELECT"
|
||||
# define HK_DRAW "MENU"
|
||||
# define HK_REM2CUR "POWER+LEFT"
|
||||
# define HK_REM2CUR "A+LEFT"
|
||||
# define HK_CUR2STACK "SELECT.."
|
||||
# define HK_REM2STACK "POWER+RIGHT"
|
||||
# define HK_REM2STACK "A+RIGHT"
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
# define SOL_QUIT BUTTON_POWER
|
||||
|
|
|
@ -107,8 +107,8 @@ static struct plugin_api* rb; /* global api struct pointer */
|
|||
#define AST_FIRE_REP (BUTTON_SELECT | BUTTON_REPEAT)
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define AST_PAUSE BUTTON_POWER
|
||||
#define AST_QUIT BUTTON_A
|
||||
#define AST_PAUSE BUTTON_A
|
||||
#define AST_QUIT BUTTON_POWER
|
||||
#define AST_THRUST_REP BUTTON_UP | BUTTON_REPEAT
|
||||
#define AST_THRUST BUTTON_UP
|
||||
#define AST_HYPERSPACE BUTTON_DOWN
|
||||
|
|
|
@ -134,14 +134,14 @@ PLUGIN_HEADER
|
|||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
|
||||
#define STAR_QUIT BUTTON_A
|
||||
#define STAR_QUIT BUTTON_POWER
|
||||
#define STAR_UP BUTTON_UP
|
||||
#define STAR_DOWN BUTTON_DOWN
|
||||
#define STAR_TOGGLE_CONTROL BUTTON_MENU
|
||||
#define STAR_LEVEL_UP (BUTTON_POWER | BUTTON_UP)
|
||||
#define STAR_LEVEL_DOWN (BUTTON_POWER | BUTTON_DOWN)
|
||||
#define STAR_LEVEL_REPEAT (BUTTON_POWER | BUTTON_RIGHT)
|
||||
#define STAR_MENU_RUN BUTTON_RIGHT
|
||||
#define STAR_TOGGLE_CONTROL BUTTON_SELECT
|
||||
#define STAR_LEVEL_UP BUTTON_VOL_UP
|
||||
#define STAR_LEVEL_DOWN BUTTON_VOL_DOWN
|
||||
#define STAR_LEVEL_REPEAT BUTTON_A
|
||||
#define STAR_MENU_RUN BUTTON_SELECT
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ static struct plugin_api* rb; /* global api struct pointer */
|
|||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define STARFIELD_QUIT BUTTON_A
|
||||
#define STARFIELD_QUIT BUTTON_POWER
|
||||
#define STARFIELD_INCREASE_ZMOVE BUTTON_UP
|
||||
#define STARFIELD_DECREASE_ZMOVE BUTTON_DOWN
|
||||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
|
|
|
@ -50,7 +50,7 @@ static bool abort;
|
|||
#define STATS_STOP_REMOTE BUTTON_RC_PLAY
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define STATS_STOP BUTTON_A
|
||||
#define STATS_STOP BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == SANSA_E200_PAD
|
||||
#define STATS_STOP BUTTON_POWER
|
||||
|
|
|
@ -93,9 +93,9 @@ PLUGIN_HEADER
|
|||
#define STOPWATCH_SCROLL_UP BUTTON_UP
|
||||
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define STOPWATCH_QUIT BUTTON_A
|
||||
#define STOPWATCH_QUIT BUTTON_POWER
|
||||
#define STOPWATCH_START_STOP BUTTON_SELECT
|
||||
#define STOPWATCH_RESET_TIMER BUTTON_POWER
|
||||
#define STOPWATCH_RESET_TIMER BUTTON_A
|
||||
#define STOPWATCH_LAP_TIMER BUTTON_MENU
|
||||
#define STOPWATCH_SCROLL_UP BUTTON_UP
|
||||
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
|
||||
|
|
|
@ -91,14 +91,14 @@
|
|||
#define SUDOKU_BUTTON_POSSIBLE BUTTON_REC
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define SUDOKU_BUTTON_QUIT BUTTON_A
|
||||
#define SUDOKU_BUTTON_QUIT BUTTON_POWER
|
||||
#define SUDOKU_BUTTON_UP BUTTON_UP
|
||||
#define SUDOKU_BUTTON_DOWN BUTTON_DOWN
|
||||
#define SUDOKU_BUTTON_LEFT BUTTON_LEFT
|
||||
#define SUDOKU_BUTTON_RIGHT BUTTON_RIGHT
|
||||
#define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT
|
||||
#define SUDOKU_BUTTON_MENU BUTTON_MENU
|
||||
#define SUDOKU_BUTTON_POSSIBLE BUTTON_POWER
|
||||
#define SUDOKU_BUTTON_POSSIBLE BUTTON_A
|
||||
|
||||
#elif (CONFIG_KEYPAD == IRIVER_H10_PAD)
|
||||
#define SUDOKU_BUTTON_QUIT BUTTON_POWER
|
||||
|
|
|
@ -86,8 +86,8 @@ PLUGIN_HEADER
|
|||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#define VUMETER_QUIT BUTTON_POWER
|
||||
#define VUMETER_HELP BUTTON_A
|
||||
#define VUMETER_MENU BUTTON_SELECT
|
||||
#define VUMETER_MENU_EXIT BUTTON_SELECT
|
||||
#define VUMETER_MENU BUTTON_MENU
|
||||
#define VUMETER_MENU_EXIT BUTTON_MENU
|
||||
#define VUMETER_MENU_EXIT2 BUTTON_POWER
|
||||
#define VUMETER_LEFT BUTTON_LEFT
|
||||
#define VUMETER_RIGHT BUTTON_RIGHT
|
||||
|
|
|
@ -139,8 +139,8 @@ PLUGIN_HEADER
|
|||
#define BTN_DIR_LEFT BUTTON_LEFT
|
||||
#define BTN_DIR_RIGHT BUTTON_RIGHT
|
||||
#define BTN_STARTPAUSE BUTTON_SELECT
|
||||
#define BTN_QUIT BUTTON_A
|
||||
#define BTN_STOPRESET BUTTON_POWER
|
||||
#define BTN_QUIT BUTTON_POWER
|
||||
#define BTN_STOPRESET BUTTON_A
|
||||
|
||||
#define PLAYERS_TEXT "Up/Down"
|
||||
#define WORMS_TEXT "Left/Right"
|
||||
|
|
|
@ -68,13 +68,13 @@ PLUGIN_HEADER
|
|||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
|
||||
#define QUIT BUTTON_A
|
||||
#define QUIT BUTTON_POWER
|
||||
#define LEFT BUTTON_LEFT
|
||||
#define RIGHT BUTTON_RIGHT
|
||||
#define SELECT BUTTON_SELECT
|
||||
#define UP BUTTON_UP
|
||||
#define DOWN BUTTON_DOWN
|
||||
#define PAUSE BUTTON_MENU
|
||||
#define PAUSE BUTTON_A
|
||||
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD)
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
|
||||
#define KBD_SELECT BUTTON_SELECT
|
||||
#define KBD_ABORT BUTTON_A
|
||||
#define KBD_ABORT BUTTON_POWER
|
||||
#define KBD_LEFT BUTTON_LEFT
|
||||
#define KBD_RIGHT BUTTON_RIGHT
|
||||
#define KBD_UP BUTTON_UP
|
||||
|
|
Loading…
Reference in a new issue