Packard Bell Vibe 500: Finish plugin keymaps. Rockbox compiles clean now for the target.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24658 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Szymon Dziok 2010-02-14 21:56:53 +00:00
parent 26c0e753d1
commit 7074a64d8a
17 changed files with 148 additions and 0 deletions

View file

@ -89,6 +89,12 @@ PLUGIN_IRAM_DECLARE
#define BTN_UP BUTTON_UP
#define BTN_DOWN BUTTON_DOWN
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define BTN_QUIT BUTTON_REC
#define BTN_RIGHT BUTTON_NEXT
#define BTN_UP BUTTON_UP
#define BTN_DOWN BUTTON_DOWN
#endif

View file

@ -356,6 +356,16 @@
#define CB_LEVEL (BUTTON_FFWD|BUTTON_UP)
#define CB_MENU (BUTTON_FFWD|BUTTON_LEFT)
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define CB_SELECT BUTTON_OK
#define CB_UP BUTTON_UP
#define CB_DOWN BUTTON_DOWN
#define CB_LEFT BUTTON_PREV
#define CB_RIGHT BUTTON_NEXT
#define CB_PLAY BUTTON_PLAY
#define CB_LEVEL BUTTON_CANCEL
#define CB_MENU BUTTON_MENU
#else
#error No keymap defined!
#endif

View file

@ -350,6 +350,16 @@ void I_ShutdownGraphics(void)
#define DOOMBUTTON_ENTER (BUTTON_PLAY|BUTTON_RIGHT)
#define DOOMBUTTON_WEAPON (BUTTON_PLAY|BUTTON_UP)
#define DOOMBUTTON_MAP (BUTTON_PLAY|BUTTON_DOWN)
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define DOOMBUTTON_UP BUTTON_OK
#define DOOMBUTTON_DOWN BUTTON_CANCEL
#define DOOMBUTTON_LEFT BUTTON_PREV
#define DOOMBUTTON_RIGHT BUTTON_NEXT
#define DOOMBUTTON_SHOOT BUTTON_MENU
#define DOOMBUTTON_OPEN BUTTON_OK
#define DOOMBUTTON_ESC BUTTON_REC
#define DOOMBUTTON_ENTER BUTTON_POWER
#define DOOMBUTTON_WEAPON BUTTON_PLAY
#else
#error Keymap not defined!
#endif

View file

@ -187,6 +187,14 @@ GREY_INFO_STRUCT
#elif (CONFIG_KEYPAD == ONDAVX777_PAD)
# define FFT_QUIT BUTTON_POWER
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
# define FFT_PREV_GRAPH BUTTON_PREV
# define FFT_NEXT_GRAPH BUTTON_NEXT
# define FFT_ORIENTATION BUTTON_MENU
# define FFT_WINDOW BUTTON_OK
# define FFT_SCALE BUTTON_PLAY
# define FFT_QUIT BUTTON_REC
#else
#error No keymap defined!
#endif

View file

@ -306,6 +306,18 @@
#define FRACTAL_PRECISION_DEC (BUTTON_PLAY | BUTTON_DOWN)
#define FRACTAL_RESET (BUTTON_PLAY | BUTTON_RIGHT)
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define FRACTAL_QUIT BUTTON_REC
#define FRACTAL_UP BUTTON_UP
#define FRACTAL_DOWN BUTTON_DOWN
#define FRACTAL_LEFT BUTTON_PREV
#define FRACTAL_RIGHT BUTTON_NEXT
#define FRACTAL_ZOOM_IN BUTTON_PLAY
#define FRACTAL_ZOOM_OUT BUTTON_MENU
#define FRACTAL_PRECISION_INC BUTTON_OK
#define FRACTAL_PRECISION_DEC BUTTON_CANCEL
#define FRACTAL_RESET (BUTTON_CANCEL | BUTTON_REPEAT)
#else
#error No keymap defined!
#endif

View file

@ -297,6 +297,18 @@
/* No advance/retreat */
/* no next var */
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
#define GBN_BUTTON_UP BUTTON_UP
#define GBN_BUTTON_DOWN BUTTON_DOWN
#define GBN_BUTTON_LEFT BUTTON_PREV
#define GBN_BUTTON_RIGHT BUTTON_NEXT
#define GBN_BUTTON_RETREAT (BUTTON_OK | BUTTON_PREV)
#define GBN_BUTTON_ADVANCE (BUTTON_OK | BUTTON_NEXT)
#define GBN_BUTTON_MENU BUTTON_MENU
#define GBN_BUTTON_PLAY BUTTON_PLAY
#define GBN_BUTTON_CONTEXT BUTTON_OK
#define GBN_BUTTON_NEXT_VAR BUTTON_CANCEL
#else
#error Unsupported keypad
#endif

View file

@ -296,6 +296,17 @@
#define IMGVIEW_PREVIOUS BUTTON_REW
#define IMGVIEW_MENU BUTTON_PLAY
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define IMGVIEW_ZOOM_IN (BUTTON_REC | BUTTON_UP)
#define IMGVIEW_ZOOM_OUT (BUTTON_REC | BUTTON_DOWN)
#define IMGVIEW_UP BUTTON_UP
#define IMGVIEW_DOWN BUTTON_DOWN
#define IMGVIEW_LEFT BUTTON_PREV
#define IMGVIEW_RIGHT BUTTON_NEXT
#define IMGVIEW_NEXT (BUTTON_REC | BUTTON_NEXT)
#define IMGVIEW_PREVIOUS (BUTTON_REC | BUTTON_PREV)
#define IMGVIEW_MENU BUTTON_MENU
#else
#error No keymap defined!
#endif

View file

@ -187,6 +187,14 @@ PLUGIN_IRAM_DECLARE
#define BTN_DOWN BUTTON_DOWN
#define BTN_PLAY BUTTON_PLAY
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define BTN_QUIT BUTTON_REC
#define BTN_RIGHT BUTTON_NEXT
#define BTN_LEFT BUTTON_PREV
#define BTN_UP BUTTON_UP
#define BTN_DOWN BUTTON_DOWN
#define BTN_PLAY BUTTON_PLAY
#else
#error No keymap defined!
#endif

View file

@ -196,6 +196,16 @@ struct mpeg_settings settings;
#define MPEG_START_TIME_RIGHT2 BUTTON_FFWD
#define MPEG_START_TIME_EXIT BUTTON_REC
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define MPEG_START_TIME_SELECT BUTTON_PLAY
#define MPEG_START_TIME_LEFT BUTTON_PREV
#define MPEG_START_TIME_RIGHT BUTTON_NEXT
#define MPEG_START_TIME_UP BUTTON_UP
#define MPEG_START_TIME_DOWN BUTTON_DOWN
#define MPEG_START_TIME_LEFT2 BUTTON_OK
#define MPEG_START_TIME_RIGHT2 BUTTON_CANCEL
#define MPEG_START_TIME_EXIT BUTTON_REC
#else
#error No keymap defined!
#endif

View file

@ -308,6 +308,15 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define MPEG_RW BUTTON_REW
#define MPEG_FF BUTTON_FFWD
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define MPEG_MENU BUTTON_MENU
#define MPEG_STOP BUTTON_REC
#define MPEG_PAUSE BUTTON_PLAY
#define MPEG_VOLDOWN BUTTON_DOWN
#define MPEG_VOLUP BUTTON_UP
#define MPEG_RW BUTTON_PREV
#define MPEG_FF BUTTON_NEXT
#else
#error No keymap defined!
#endif

View file

@ -221,6 +221,17 @@
#define PACMAN_COIN BUTTON_FFWD
#define PACMAN_MENU BUTTON_PLAY
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define PACMAN_UP BUTTON_UP
#define PACMAN_DOWN BUTTON_DOWN
#define PACMAN_LEFT BUTTON_PREV
#define PACMAN_RIGHT BUTTON_NEXT
#define PACMAN_1UP BUTTON_PLAY
#define PACMAN_2UP BUTTON_REC
#define PACMAN_COIN BUTTON_OK
#define PACMAN_MENU BUTTON_MENU
#else
#error Keymap not defined!

View file

@ -145,6 +145,8 @@ const struct button_mapping pf_context_buttons[] =
#elif CONFIG_KEYPAD == IRIVER_H100_PAD || CONFIG_KEYPAD == IRIVER_H300_PAD || \
CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == ONDIO_PAD
{PF_QUIT, BUTTON_OFF, BUTTON_NONE},
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
{PF_QUIT, BUTTON_REC, BUTTON_NONE},
#endif
#if CONFIG_KEYPAD == IAUDIO_M3_PAD
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD|CONTEXT_REMOTE)

View file

@ -207,6 +207,15 @@
#define REVERSI_BUTTON_MAKE_MOVE BUTTON_FFWD
#define REVERSI_BUTTON_MENU BUTTON_PLAY
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define REVERSI_BUTTON_QUIT BUTTON_REC
#define REVERSI_BUTTON_UP BUTTON_UP
#define REVERSI_BUTTON_DOWN BUTTON_DOWN
#define REVERSI_BUTTON_LEFT BUTTON_PREV
#define REVERSI_BUTTON_RIGHT BUTTON_NEXT
#define REVERSI_BUTTON_MAKE_MOVE BUTTON_OK
#define REVERSI_BUTTON_MENU BUTTON_MENU
#else
#error No keymap defined!
#endif

View file

@ -271,6 +271,16 @@
#define SUDOKU_BUTTON_MENU BUTTON_PLAY
#define SUDOKU_BUTTON_POSSIBLE BUTTON_REW
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define SUDOKU_BUTTON_QUIT BUTTON_REC
#define SUDOKU_BUTTON_UP BUTTON_UP
#define SUDOKU_BUTTON_DOWN BUTTON_DOWN
#define SUDOKU_BUTTON_LEFT BUTTON_PREV
#define SUDOKU_BUTTON_RIGHT BUTTON_NEXT
#define SUDOKU_BUTTON_TOGGLE BUTTON_OK
#define SUDOKU_BUTTON_MENU BUTTON_MENU
#define SUDOKU_BUTTON_POSSIBLE BUTTON_PLAY
#else
#error No keymap defined!
#endif

View file

@ -32,6 +32,8 @@ PLUGIN_HEADER
#define TESTCODEC_EXITBUTTON BUTTON_PLAY
#elif CONFIG_KEYPAD == COWON_D2_PAD || CONFIG_KEYPAD == ONDAVX747_PAD
#define TESTCODEC_EXITBUTTON BUTTON_POWER
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define TESTCODEC_EXITBUTTON BUTTON_REC
#elif defined(HAVE_TOUCHSCREEN)
#define TESTCODEC_EXITBUTTON BUTTON_TOPLEFT
#else

View file

@ -180,6 +180,15 @@
#define ZX_SELECT BUTTON_PLAY
#define ZX_MENU BUTTON_FFWD
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define ZX_UP BUTTON_UP
#define ZX_DOWN BUTTON_DOWN
#define ZX_LEFT BUTTON_PREV
#define ZX_RIGHT BUTTON_NEXT
#define ZX_SELECT BUTTON_OK
#define ZX_MENU BUTTON_MENU
#else
#error Keymap not defined!

View file

@ -175,6 +175,15 @@
#define KBD_UP BUTTON_UP
#define KBD_DOWN BUTTON_DOWN
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define KBD_SELECT BUTTON_OK
#define KBD_ABORT BUTTON_CANCEL
#define KBD_LEFT BUTTON_PREV
#define KBD_RIGHT BUTTON_NEXT
#define KBD_UP BUTTON_UP
#define KBD_DOWN BUTTON_DOWN
#endif
#ifdef HAVE_TOUCHSCREEN