Matt v.d. Westhuizen's iAudio X5 keypad adjustments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
205be712fe
commit
cedba8830f
39 changed files with 310 additions and 16 deletions
|
@ -43,6 +43,11 @@
|
|||
#define BOOKMARK_DELETE (BUTTON_PLAY | BUTTON_SELECT)
|
||||
#define BOOKMARK_DOWN BUTTON_DOWN
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define BOOKMARK_SELECT BUTTON_MENU
|
||||
#define BOOKMARK_DELETE BUTTON_REC | BUTTON_REPEAT
|
||||
#define BOOKMARK_DOWN BUTTON_DOWN
|
||||
|
||||
#else /* player, recorder, gmini */
|
||||
#define BOOKMARK_SELECT BUTTON_PLAY
|
||||
#define BOOKMARK_DELETE (BUTTON_ON | BUTTON_PLAY)
|
||||
|
|
|
@ -78,6 +78,11 @@
|
|||
#define LIST_PREV BUTTON_UP
|
||||
#define LIST_PGUP (BUTTON_ON | BUTTON_UP)
|
||||
#define LIST_PGDN (BUTTON_ON | BUTTON_DOWN)
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define LIST_NEXT BUTTON_DOWN
|
||||
#define LIST_PREV BUTTON_UP
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
@ -85,6 +85,14 @@
|
|||
#define SELECT_CANCEL BUTTON_OFF
|
||||
#define SELECT_CANCEL2 BUTTON_MENU
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define SELECT_INC BUTTON_UP
|
||||
#define SELECT_DEC BUTTON_DOWN
|
||||
#define SELECT_OK BUTTON_MENU
|
||||
#define SELECT_OK2 BUTTON_LEFT
|
||||
#define SELECT_CANCEL BUTTON_PLAY
|
||||
#define SELECT_CANCEL2 BUTTON_POWER
|
||||
|
||||
#endif
|
||||
|
||||
struct gui_select
|
||||
|
|
|
@ -86,6 +86,14 @@
|
|||
#define MENU_EXIT_MENU BUTTON_PLAY
|
||||
#define MENU_ENTER BUTTON_RIGHT
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
|
||||
#define MENU_NEXT BUTTON_DOWN
|
||||
#define MENU_PREV BUTTON_UP
|
||||
#define MENU_EXIT BUTTON_LEFT
|
||||
#define MENU_EXIT_MENU BUTTON_MENU
|
||||
#define MENU_ENTER BUTTON_RIGHT
|
||||
|
||||
#endif
|
||||
|
||||
struct menu_item {
|
||||
|
|
|
@ -45,6 +45,8 @@ PLUGIN_HEADER
|
|||
#define BATTERY_TEST_QUIT BUTTON_PLAY
|
||||
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||
#define BATTERY_TEST_QUIT BUTTON_MENU
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define BATTERY_TEST_QUIT BUTTON_POWER
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -143,6 +143,16 @@ PLUGIN_HEADER
|
|||
#define CALCULATOR_INPUT (BUTTON_SELECT | BUTTON_REL)
|
||||
#define CALCULATOR_CALC (BUTTON_PLAY | BUTTON_REPEAT)
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
|
||||
#define CALCULATOR_UP BUTTON_UP
|
||||
#define CALCULATOR_DOWN BUTTON_DOWN
|
||||
#define CALCULATOR_QUIT BUTTON_POWER
|
||||
#define CALCULATOR_INPUT_CALC_PRE BUTTON_MENU
|
||||
#define CALCULATOR_INPUT (BUTTON_MENU | BUTTON_REL)
|
||||
#define CALCULATOR_CALC BUTTON_PLAY
|
||||
#define CALCULATOR_CLEAR BUTTON_REC
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -86,6 +86,16 @@ PLUGIN_HEADER
|
|||
#define CHC_SETTINGS_OK BUTTON_SELECT
|
||||
#define CHC_SETTINGS_CANCEL BUTTON_PLAY
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define CHC_QUIT BUTTON_REC
|
||||
#define CHC_STARTSTOP BUTTON_PLAY
|
||||
#define CHC_RESET BUTTON_POWER
|
||||
#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_REC
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -984,6 +984,14 @@ STATIC void chip8 (void)
|
|||
#define CHIP8_KEY6 BUTTON_RIGHT
|
||||
#define CHIP8_KEY8 BUTTON_SCROLL_FWD
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define CHIP8_OFF BUTTON_POWER
|
||||
#define CHIP8_KEY2 BUTTON_UP
|
||||
#define CHIP8_KEY4 BUTTON_LEFT
|
||||
#define CHIP8_KEY5 BUTTON_MENU
|
||||
#define CHIP8_KEY6 BUTTON_RIGHT
|
||||
#define CHIP8_KEY8 BUTTON_DOWN
|
||||
|
||||
#endif
|
||||
|
||||
static byte chip8_virtual_keys[16];
|
||||
|
|
|
@ -106,6 +106,19 @@ PLUGIN_HEADER
|
|||
#define CUBE_PAUSE (BUTTON_SELECT | BUTTON_REL)
|
||||
#define CUBE_HIGHSPEED (BUTTON_MODE | BUTTON_EQ) /* TODO: this is impossible */
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#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_PLAY | BUTTON_UP)
|
||||
#define CUBE_Z_DEC (BUTTON_PLAY | BUTTON_DOWN)
|
||||
#define CUBE_MODE BUTTON_MENU
|
||||
#define CUBE_PAUSE_PRE BUTTON_PLAY
|
||||
#define CUBE_PAUSE (BUTTON_PLAY | BUTTON_REL)
|
||||
#define CUBE_HIGHSPEED (BUTTON_REC | BUTTON_REL)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
|
@ -40,6 +40,9 @@ PLUGIN_HEADER
|
|||
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
||||
#define DBX_SELECT BUTTON_SELECT
|
||||
#define DBX_STOP BUTTON_PLAY
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define DBX_SELECT BUTTON_MENU
|
||||
#define DBX_STOP BUTTON_PLAY
|
||||
#endif
|
||||
|
||||
#define MAX_TOKENS 70
|
||||
|
|
|
@ -32,6 +32,12 @@ PLUGIN_HEADER
|
|||
#define DEMYSTIFY_REMOVE_POLYGON BUTTON_LEFT
|
||||
#define DEMYSTIFY_INCREASE_SPEED BUTTON_SCROLL_FWD
|
||||
#define DEMYSTIFY_DECREASE_SPEED BUTTON_SCROLL_BACK
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define DEMYSTIFY_QUIT BUTTON_POWER
|
||||
#define DEMYSTIFY_ADD_POLYGON BUTTON_RIGHT
|
||||
#define DEMYSTIFY_REMOVE_POLYGON BUTTON_LEFT
|
||||
#define DEMYSTIFY_INCREASE_SPEED BUTTON_UP
|
||||
#define DEMYSTIFY_DECREASE_SPEED BUTTON_DOWN
|
||||
#else
|
||||
#define DEMYSTIFY_QUIT BUTTON_OFF
|
||||
#define DEMYSTIFY_ADD_POLYGON BUTTON_UP
|
||||
|
|
|
@ -108,6 +108,8 @@ long reverse (long N) {
|
|||
#define LP_QUIT BUTTON_MENU
|
||||
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
||||
#define LP_QUIT BUTTON_PLAY
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define LP_QUIT BUTTON_POWER
|
||||
#else
|
||||
#define LP_QUIT BUTTON_OFF
|
||||
#endif
|
||||
|
|
|
@ -63,6 +63,17 @@ PLUGIN_HEADER
|
|||
#define FLIPIT_TOGGLE_PRE BUTTON_SELECT
|
||||
#define FLIPIT_TOGGLE (BUTTON_SELECT | BUTTON_REL)
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
|
||||
#define FLIPIT_UP BUTTON_UP
|
||||
#define FLIPIT_DOWN BUTTON_DOWN
|
||||
#define FLIPIT_QUIT BUTTON_POWER
|
||||
#define FLIPIT_SHUFFLE (BUTTON_PLAY | BUTTON_LEFT)
|
||||
#define FLIPIT_SOLVE (BUTTON_PLAY | BUTTON_RIGHT)
|
||||
#define FLIPIT_STEP_BY_STEP (BUTTON_PLAY | BUTTON_UP)
|
||||
#define FLIPIT_TOGGLE_PRE BUTTON_MENU
|
||||
#define FLIPIT_TOGGLE (BUTTON_MENU | BUTTON_REL)
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -87,6 +87,16 @@ PLUGIN_HEADER
|
|||
#define BEJEWELED_SELECT BUTTON_SELECT
|
||||
#define BEJEWELED_RESUME BUTTON_EQ
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define BEJEWELED_UP BUTTON_UP
|
||||
#define BEJEWELED_DOWN BUTTON_DOWN
|
||||
#define BEJEWELED_LEFT BUTTON_LEFT
|
||||
#define BEJEWELED_RIGHT BUTTON_RIGHT
|
||||
#define BEJEWELED_QUIT BUTTON_POWER
|
||||
#define BEJEWELED_START BUTTON_PLAY
|
||||
#define BEJEWELED_SELECT BUTTON_MENU
|
||||
#define BEJEWELED_RESUME BUTTON_REC
|
||||
|
||||
#else
|
||||
#error BEJEWELED: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -195,6 +195,12 @@ const unsigned char rockbox16x7[] = {
|
|||
#define LP_INC_X BUTTON_RIGHT
|
||||
#define LP_DEC_Y BUTTON_DOWN
|
||||
#define LP_INC_Y BUTTON_UP
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define LP_QUIT BUTTON_MENU
|
||||
#define LP_DEC_X BUTTON_LEFT
|
||||
#define LP_INC_X BUTTON_RIGHT
|
||||
#define LP_DEC_Y BUTTON_DOWN
|
||||
#define LP_INC_Y BUTTON_UP
|
||||
#else
|
||||
#define LP_QUIT BUTTON_OFF
|
||||
#define LP_DEC_X BUTTON_LEFT
|
||||
|
|
|
@ -80,6 +80,15 @@ PLUGIN_HEADER
|
|||
#define MINESWP_DISCOVER (BUTTON_SELECT | BUTTON_PLAY)
|
||||
#define MINESWP_INFO (BUTTON_SELECT | BUTTON_MENU)
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define MINESWP_UP BUTTON_UP
|
||||
#define MINESWP_DOWN BUTTON_DOWN
|
||||
#define MINESWP_QUIT BUTTON_POWER
|
||||
#define MINESWP_START BUTTON_REC
|
||||
#define MINESWP_TOGGLE BUTTON_PLAY
|
||||
#define MINESWP_DISCOVER BUTTON_MENU
|
||||
#define MINESWP_INFO (BUTTON_REC | BUTTON_PLAY)
|
||||
|
||||
#endif
|
||||
|
||||
/* here is a global api struct pointer. while not strictly necessary,
|
||||
|
|
|
@ -63,6 +63,11 @@ PLUGIN_HEADER
|
|||
#define MOSAIQUE_SPEED BUTTON_MODE
|
||||
#define MOSAIQUE_RESTART BUTTON_SELECT
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define MOSAIQUE_QUIT BUTTON_POWER
|
||||
#define MOSAIQUE_SPEED BUTTON_MENU
|
||||
#define MOSAIQUE_RESTART BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||
|
|
|
@ -1885,6 +1885,11 @@ char *get_mp3_filename(char *wav_name)
|
|||
#define MP3ENC_NEXT BUTTON_SCROLL_FWD
|
||||
#define MP3ENC_DONE BUTTON_MENU
|
||||
#define MP3ENC_SELECT BUTTON_SELECT
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define MP3ENC_PREV BUTTON_UP
|
||||
#define MP3ENC_NEXT BUTTON_DOWN
|
||||
#define MP3ENC_DONE BUTTON_POWER
|
||||
#define MP3ENC_SELECT BUTTON_MENU
|
||||
#endif
|
||||
|
||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||
|
|
|
@ -65,6 +65,13 @@ PLUGIN_HEADER
|
|||
#define PONG_RIGHT_UP BUTTON_RIGHT
|
||||
#define PONG_RIGHT_DOWN BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define PONG_QUIT BUTTON_POWER
|
||||
#define PONG_LEFT_UP BUTTON_UP
|
||||
#define PONG_LEFT_DOWN BUTTON_DOWN
|
||||
#define PONG_RIGHT_UP BUTTON_REC
|
||||
#define PONG_RIGHT_DOWN BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -30,6 +30,12 @@ PLUGIN_HEADER
|
|||
#define ROCKBLOX_DOWN BUTTON_SCROLL_FWD
|
||||
#define ROCKBLOX_LEFT BUTTON_LEFT
|
||||
#define ROCKBLOX_RIGHT BUTTON_RIGHT
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define ROCKBLOX_OFF BUTTON_POWER
|
||||
#define ROCKBLOX_UP BUTTON_UP
|
||||
#define ROCKBLOX_DOWN BUTTON_DOWN
|
||||
#define ROCKBLOX_LEFT BUTTON_LEFT
|
||||
#define ROCKBLOX_RIGHT BUTTON_RIGHT
|
||||
#else
|
||||
#define ROCKBLOX_OFF BUTTON_OFF
|
||||
#define ROCKBLOX_UP BUTTON_UP
|
||||
|
|
|
@ -52,6 +52,13 @@ PLUGIN_HEADER
|
|||
#define PUZZLE_SHUFFLE BUTTON_SELECT
|
||||
#define PUZZLE_PICTURE BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define PUZZLE_QUIT BUTTON_POWER
|
||||
#define PUZZLE_UP BUTTON_UP
|
||||
#define PUZZLE_DOWN BUTTON_DOWN
|
||||
#define PUZZLE_SHUFFLE BUTTON_REC
|
||||
#define PUZZLE_PICTURE BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -61,6 +61,12 @@ PLUGIN_HEADER
|
|||
#define SNAKE_DOWN BUTTON_PLAY
|
||||
#define SNAKE_PLAYPAUSE BUTTON_SELECT
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define SNAKE_QUIT BUTTON_POWER
|
||||
#define SNAKE_UP BUTTON_UP
|
||||
#define SNAKE_DOWN BUTTON_DOWN
|
||||
#define SNAKE_PLAYPAUSE BUTTON_PLAY
|
||||
|
||||
#else
|
||||
#error "lacks keymapping"
|
||||
#endif
|
||||
|
|
|
@ -103,6 +103,16 @@ PLUGIN_HEADER
|
|||
#define SNAKE2_SELECT_TYPE BUTTON_RIGHT
|
||||
#define SNAKE2_PLAYPAUSE BUTTON_SELECT
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define SNAKE2_UP BUTTON_UP
|
||||
#define SNAKE2_DOWN BUTTON_DOWN
|
||||
#define SNAKE2_QUIT BUTTON_POWER
|
||||
#define SNAKE2_LEVEL_UP BUTTON_REC
|
||||
#define SNAKE2_LEVEL_DOWN BUTTON_PLAY
|
||||
#define SNAKE2_SELECT_MAZE BUTTON_LEFT
|
||||
#define SNAKE2_SELECT_TYPE BUTTON_RIGHT
|
||||
#define SNAKE2_PLAYPAUSE BUTTON_MENU
|
||||
|
||||
#else
|
||||
#error "lacks keymapping"
|
||||
#endif
|
||||
|
|
|
@ -40,6 +40,8 @@ PLUGIN_HEADER
|
|||
#define SNOW_QUIT BUTTON_MENU
|
||||
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
||||
#define SNOW_QUIT BUTTON_PLAY
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define SNOW_QUIT BUTTON_POWER
|
||||
#else
|
||||
#define SNOW_QUIT BUTTON_OFF
|
||||
#endif
|
||||
|
|
|
@ -75,6 +75,16 @@ PLUGIN_HEADER
|
|||
#define SOKOBAN_LEVEL_DOWN (BUTTON_SELECT | BUTTON_LEFT)
|
||||
#define SOKOBAN_LEVEL_REPEAT (BUTTON_SELECT | BUTTON_PLAY)
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define SOKOBAN_UP BUTTON_UP
|
||||
#define SOKOBAN_DOWN BUTTON_DOWN
|
||||
#define SOKOBAN_QUIT BUTTON_POWER
|
||||
#define SOKOBAN_UNDO_PRE BUTTON_MENU
|
||||
#define SOKOBAN_UNDO (BUTTON_MENU | BUTTON_REL)
|
||||
#define SOKOBAN_LEVEL_UP (BUTTON_PLAY | BUTTON_UP)
|
||||
#define SOKOBAN_LEVEL_DOWN (BUTTON_PLAY | BUTTON_DOWN)
|
||||
#define SOKOBAN_LEVEL_REPEAT BUTTON_REC
|
||||
|
||||
#endif
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
|
|
|
@ -109,19 +109,33 @@ static struct plugin_api* rb;
|
|||
#define SOL_OPT BUTTON_ON
|
||||
#define SOL_REM BUTTON_REC
|
||||
|
||||
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||
#define SOL_QUIT (BUTTON_SELECT | BUTTON_MENU)
|
||||
#define SOL_UP BUTTON_MENU
|
||||
#define SOL_DOWN BUTTON_PLAY
|
||||
#define SOL_LEFT BUTTON_LEFT
|
||||
#define SOL_RIGHT BUTTON_RIGHT
|
||||
#define SOL_MOVE BUTTON_SELECT
|
||||
#define SOL_DRAW (BUTTON_SELECT | BUTTON_PLAY)
|
||||
#define SOL_REM2CUR (BUTTON_SELECT | BUTTON_LEFT)
|
||||
#define SOL_CUR2STACK (BUTTON_SELECT | BUTTON_RIGHT)
|
||||
#define SOL_REM2STACK (BUTTON_LEFT | BUTTON_RIGHT)
|
||||
#define SOL_MENU_RUN BUTTON_SELECT
|
||||
#define SOL_MENU_INFO (BUTTON_PLAY | BUTTON_MENU)
|
||||
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||
#define SOL_QUIT (BUTTON_SELECT | BUTTON_MENU)
|
||||
#define SOL_UP BUTTON_MENU
|
||||
#define SOL_DOWN BUTTON_PLAY
|
||||
#define SOL_LEFT BUTTON_LEFT
|
||||
#define SOL_RIGHT BUTTON_RIGHT
|
||||
#define SOL_MOVE BUTTON_SELECT
|
||||
#define SOL_DRAW (BUTTON_SELECT | BUTTON_PLAY)
|
||||
#define SOL_REM2CUR (BUTTON_SELECT | BUTTON_LEFT)
|
||||
#define SOL_CUR2STACK (BUTTON_SELECT | BUTTON_RIGHT)
|
||||
#define SOL_REM2STACK (BUTTON_LEFT | BUTTON_RIGHT)
|
||||
#define SOL_MENU_RUN BUTTON_SELECT
|
||||
#define SOL_MENU_INFO (BUTTON_PLAY | BUTTON_MENU)
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define SOL_QUIT BUTTON_POWER
|
||||
#define SOL_UP BUTTON_UP
|
||||
#define SOL_DOWN BUTTON_DOWN
|
||||
#define SOL_LEFT BUTTON_LEFT
|
||||
#define SOL_RIGHT BUTTON_RIGHT
|
||||
#define SOL_MOVE BUTTON_MENU
|
||||
#define SOL_DRAW BUTTON_PLAY
|
||||
#define SOL_REM2CUR (BUTTON_REC | BUTTON_LEFT)
|
||||
#define SOL_CUR2STACK (BUTTON_REC | BUTTON_UP)
|
||||
#define SOL_REM2STACK (BUTTON_REC | BUTTON_DOWN)
|
||||
#define SOL_MENU_RUN BUTTON_MENU
|
||||
#define SOL_MENU_INFO BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -160,6 +174,13 @@ static struct plugin_api* rb;
|
|||
#define HELP_SOL_REM2CUR "SELECT+LEFT: Put the card on top of the remains' stack on top of the cursor."
|
||||
#define HELP_SOL_CUR2STACK "SELECT+RIGHT..: Put the card under the cursor on one of the 4 final stacks."
|
||||
#define HELP_SOL_REM2STACK "LEFT+RIGHT: Put the card on top of the remains' stack on one of the 4 final stacks."
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define HELP_SOL_MOVE "MENU: Select cards, Move cards, reveal hidden cards ..."
|
||||
#define HELP_SOL_DRAW "PLAY: Un-select a card if it was selected. Else, draw 3 new cards out of the remains' stack."
|
||||
#define HELP_SOL_REM2CUR "REC+LEFT: Put the card on top of the remains' stack on top of the cursor."
|
||||
#define HELP_SOL_CUR2STACK "REC+UP..: Put the card under the cursor on one of the 4 final stacks."
|
||||
#define HELP_SOL_REM2STACK "REC+DOWN: Put the card on top of the remains' stack on one of the 4 final stacks."
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -110,6 +110,18 @@ PLUGIN_HEADER
|
|||
#define STAR_LEVEL_REPEAT (BUTTON_SELECT | BUTTON_PLAY)
|
||||
#define STAR_MENU_RUN BUTTON_RIGHT
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
|
||||
#define STAR_QUIT BUTTON_POWER
|
||||
#define STAR_UP BUTTON_UP
|
||||
#define STAR_DOWN BUTTON_DOWN
|
||||
#define STAR_TOGGLE_CONTROL_PRE BUTTON_MENU
|
||||
#define STAR_TOGGLE_CONTROL (BUTTON_MENU | BUTTON_REL)
|
||||
#define STAR_LEVEL_UP (BUTTON_PLAY | BUTTON_UP)
|
||||
#define STAR_LEVEL_DOWN (BUTTON_PLAY | BUTTON_DOWN)
|
||||
#define STAR_LEVEL_REPEAT (BUTTON_PLAY | BUTTON_RIGHT)
|
||||
#define STAR_MENU_RUN BUTTON_REC
|
||||
|
||||
#endif
|
||||
|
||||
/* function returns because of USB? */
|
||||
|
|
|
@ -32,6 +32,12 @@ static struct plugin_api* rb; /* global api struct pointer */
|
|||
#define STARFIELD_DECREASE_ZMOVE BUTTON_SCROLL_BACK
|
||||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define STARFIELD_QUIT BUTTON_POWER
|
||||
#define STARFIELD_INCREASE_ZMOVE BUTTON_UP
|
||||
#define STARFIELD_DECREASE_ZMOVE BUTTON_DOWN
|
||||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#else
|
||||
#define STARFIELD_QUIT BUTTON_OFF
|
||||
#define STARFIELD_INCREASE_ZMOVE BUTTON_UP
|
||||
|
|
|
@ -34,6 +34,8 @@ static int fontwidth, fontheight;
|
|||
#define STATS_STOP BUTTON_MENU
|
||||
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
||||
#define STATS_STOP BUTTON_PLAY
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define STATS_STOP BUTTON_POWER
|
||||
#else
|
||||
#define STATS_STOP BUTTON_OFF
|
||||
#endif
|
||||
|
|
|
@ -77,6 +77,13 @@ PLUGIN_HEADER
|
|||
#define STOPWATCH_LAP_TIMER BUTTON_SELECT
|
||||
#define STOPWATCH_SCROLL_UP BUTTON_UP
|
||||
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define STOPWATCH_QUIT BUTTON_POWER
|
||||
#define STOPWATCH_START_STOP BUTTON_PLAY
|
||||
#define STOPWATCH_RESET_TIMER BUTTON_REC
|
||||
#define STOPWATCH_LAP_TIMER BUTTON_MENU
|
||||
#define STOPWATCH_SCROLL_UP BUTTON_UP
|
||||
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -103,6 +103,13 @@ PLUGIN_HEADER
|
|||
#define SUDOKU_BUTTON_MENU BUTTON_MENU
|
||||
#define SUDOKU_BUTTON_POSSIBLE (BUTTON_SELECT | BUTTON_LEFT)
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define SUDOKU_BUTTON_QUIT BUTTON_POWER
|
||||
#define SUDOKU_BUTTON_UP BUTTON_UP
|
||||
#define SUDOKU_BUTTON_DOWN BUTTON_DOWN
|
||||
#define SUDOKU_BUTTON_TOGGLE BUTTON_MENU
|
||||
#define SUDOKU_BUTTON_MENU BUTTON_PLAY
|
||||
#define SUDOKU_BUTTON_POSSIBLE BUTTON_REC
|
||||
|
||||
#elif
|
||||
#error SUDOKU: Unsupported keypad
|
||||
|
|
|
@ -140,6 +140,17 @@ PLUGIN_HEADER
|
|||
#define VIEWER_MODE_LINE (BUTTON_EQ | BUTTON_REPEAT)
|
||||
#define VIEWER_MODE_WIDTH BUTTON_MODE
|
||||
|
||||
/* iAudio X5 keys */
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define VIEWER_QUIT BUTTON_POWER
|
||||
#define VIEWER_PAGE_UP BUTTON_UP
|
||||
#define VIEWER_PAGE_DOWN BUTTON_DOWN
|
||||
#define VIEWER_SCREEN_LEFT BUTTON_LEFT
|
||||
#define VIEWER_SCREEN_RIGHT BUTTON_RIGHT
|
||||
#define VIEWER_MODE_WRAP (BUTTON_PLAY | BUTTON_REL)
|
||||
#define VIEWER_MODE_LINE (BUTTON_PLAY | BUTTON_REPEAT)
|
||||
#define VIEWER_MODE_WIDTH BUTTON_MENU
|
||||
|
||||
#endif
|
||||
|
||||
enum {
|
||||
|
|
|
@ -128,6 +128,20 @@
|
|||
#define KBD_UP BUTTON_UP
|
||||
#define KBD_DOWN BUTTON_DOWN
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
|
||||
/* TODO: Check keyboard mappings */
|
||||
|
||||
#define KBD_MODES /* iAudio X5 uses 2 modes, picker and line edit */
|
||||
#define KBD_SELECT (BUTTON_MENU | BUTTON_REL) /* backspace in line edit */
|
||||
#define KBD_SELECT_PRE BUTTON_MENU
|
||||
#define KBD_DONE BUTTON_PLAY
|
||||
#define KBD_ABORT BUTTON_REC
|
||||
#define KBD_LEFT BUTTON_LEFT
|
||||
#define KBD_RIGHT BUTTON_RIGHT
|
||||
#define KBD_UP BUTTON_UP
|
||||
#define KBD_DOWN BUTTON_DOWN
|
||||
|
||||
#endif
|
||||
|
||||
#if KEYBOARD_PAGES == 1
|
||||
|
|
|
@ -107,6 +107,15 @@
|
|||
#define SETTINGS_OK BUTTON_SELECT
|
||||
#define SETTINGS_CANCEL BUTTON_PLAY
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
#define SETTINGS_INC BUTTON_UP
|
||||
#define SETTINGS_DEC BUTTON_DOWN
|
||||
#define SETTINGS_OK BUTTON_MENU
|
||||
#define SETTINGS_CANCEL BUTTON_REC
|
||||
#define SETTINGS_PREV BUTTON_LEFT
|
||||
#define SETTINGS_NEXT BUTTON_RIGHT
|
||||
#define SETTINGS_ACCEPT BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
/* data structures */
|
||||
|
|
15
apps/tree.h
15
apps/tree.h
|
@ -164,6 +164,21 @@
|
|||
#define TREE_WPS_PRE BUTTON_SELECT
|
||||
#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT)
|
||||
#define TREE_POWER_BTN (BUTTON_PLAY | BUTTON_REPEAT)
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
|
||||
#define TREE_NEXT BUTTON_DOWN
|
||||
#define TREE_PREV BUTTON_UP
|
||||
#define TREE_EXIT BUTTON_LEFT
|
||||
#define TREE_ABORT BUTTON_PLAY
|
||||
#define TREE_RUN (BUTTON_RIGHT | BUTTON_REL)
|
||||
#define TREE_RUN_PRE BUTTON_RIGHT
|
||||
#define TREE_MENU (BUTTON_MENU | BUTTON_REPEAT)
|
||||
#define TREE_MENU_PRE BUTTON_MENU
|
||||
#define TREE_WPS (BUTTON_MENU | BUTTON_REL)
|
||||
#define TREE_WPS_PRE BUTTON_MENU
|
||||
#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT)
|
||||
#define TREE_POWER_BTN (BUTTON_PLAY | BUTTON_REPEAT)
|
||||
#endif
|
||||
|
||||
struct entry {
|
||||
|
|
|
@ -159,3 +159,4 @@ Martin Scarratt
|
|||
Karl Kurbjun
|
||||
Tomasz Malesinski
|
||||
Andrew Pilley
|
||||
Matt v.d. Westhuizen
|
||||
|
|
|
@ -172,6 +172,17 @@ bool button_hold(void);
|
|||
#define BUTTON_DOWN 0x0020
|
||||
#define BUTTON_SELECT 0x0100
|
||||
|
||||
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
||||
|
||||
/* TODO: These codes should relate to the hardware */
|
||||
|
||||
#define BUTTON_PLAY 0x0001
|
||||
#define BUTTON_REC 0x0002
|
||||
#define BUTTON_POWER 0x0004
|
||||
#define BUTTON_UP 0x0008
|
||||
#define BUTTON_DOWN 0x0010
|
||||
#define BUTTON_MENU 0x0020
|
||||
|
||||
#endif /* RECORDER/PLAYER/ONDIO/GMINI KEYPAD */
|
||||
|
||||
#endif /* _BUTTON_H_ */
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
|
||||
#define CONFIG_LCD LCD_X5
|
||||
|
||||
/* Define this for LCD backlight available */
|
||||
#define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
@ -59,9 +62,6 @@
|
|||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x11010
|
||||
|
||||
/* Define this for LCD backlight available */
|
||||
#define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */
|
||||
|
||||
/* Define this to the CPU frequency */
|
||||
#define CPU_FREQ 11289600
|
||||
|
||||
|
|
|
@ -114,6 +114,10 @@
|
|||
#define KEYBOARD_SPECIFIC \
|
||||
"[not written yet]"
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define KEYBOARD_SPECIFIC \
|
||||
"[not written yet]"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue