Packard Bell Vibe 500: Start committing plugin keymaps.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24610 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Szymon Dziok 2010-02-11 22:40:17 +00:00
parent 80cc3d489e
commit 05577e48a8
15 changed files with 121 additions and 2 deletions

View file

@ -203,6 +203,13 @@ PLUGIN_HEADER
#define BATTERY_ON_TXT "LEFT" #define BATTERY_ON_TXT "LEFT"
#define BATTERY_OFF_TXT "RIGHT" #define BATTERY_OFF_TXT "RIGHT"
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define BATTERY_ON BUTTON_PLAY
#define BATTERY_OFF BUTTON_REC
#define BATTERY_ON_TXT "PLAY - start"
#define BATTERY_OFF_TXT "REC"
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -266,6 +266,16 @@ PLUGIN_HEADER
#define CHC_SETTINGS_OK BUTTON_PLAY #define CHC_SETTINGS_OK BUTTON_PLAY
#define CHC_SETTINGS_CANCEL BUTTON_REW #define CHC_SETTINGS_CANCEL BUTTON_REW
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define CHC_QUIT BUTTON_REC
#define CHC_STARTSTOP BUTTON_PLAY
#define CHC_RESET BUTTON_PREV
#define CHC_MENU BUTTON_MENU
#define CHC_SETTINGS_INC BUTTON_UP
#define CHC_SETTINGS_DEC BUTTON_DOWN
#define CHC_SETTINGS_OK BUTTON_OK
#define CHC_SETTINGS_CANCEL BUTTON_CANCEL
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -264,6 +264,15 @@ PLUGIN_HEADER
#define CUBE_PAUSE BUTTON_PLAY #define CUBE_PAUSE BUTTON_PLAY
#define CUBE_HIGHSPEED BUTTON_FFWD #define CUBE_HIGHSPEED BUTTON_FFWD
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define CUBE_QUIT BUTTON_REC
#define CUBE_NEXT BUTTON_NEXT
#define CUBE_PREV BUTTON_PREV
#define CUBE_INC BUTTON_UP
#define CUBE_DEC BUTTON_DOWN
#define CUBE_MODE BUTTON_MENU
#define CUBE_PAUSE BUTTON_PLAY
#define CUBE_HIGHSPEED BUTTON_OK
#else #else
#error No keymap defined! #error No keymap defined!

View file

@ -148,6 +148,8 @@ long reverse (long N) {
#define LP_QUIT BUTTON_POWER #define LP_QUIT BUTTON_POWER
#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD #elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
#define LP_QUIT BUTTON_LEFT #define LP_QUIT BUTTON_LEFT
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define LP_QUIT BUTTON_CANCEL
#else #else
#define LP_QUIT BUTTON_OFF #define LP_QUIT BUTTON_OFF
#endif #endif

View file

@ -308,6 +308,17 @@ PLUGIN_HEADER
#define FLIPIT_STEP_BY_STEP (BUTTON_PLAY|BUTTON_UP) #define FLIPIT_STEP_BY_STEP (BUTTON_PLAY|BUTTON_UP)
#define FLIPIT_TOGGLE (BUTTON_PLAY|BUTTON_DOWN) #define FLIPIT_TOGGLE (BUTTON_PLAY|BUTTON_DOWN)
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define FLIPIT_LEFT BUTTON_PREV
#define FLIPIT_RIGHT BUTTON_NEXT
#define FLIPIT_UP BUTTON_UP
#define FLIPIT_DOWN BUTTON_DOWN
#define FLIPIT_QUIT BUTTON_REC
#define FLIPIT_SHUFFLE BUTTON_PLAY
#define FLIPIT_SOLVE BUTTON_MENU
#define FLIPIT_STEP_BY_STEP BUTTON_CANCEL
#define FLIPIT_TOGGLE BUTTON_OK
#else #else
#error No keymap defined! #error No keymap defined!

View file

@ -96,6 +96,10 @@ PLUGIN_HEADER
# define LAMP_LEFT BUTTON_LEFT # define LAMP_LEFT BUTTON_LEFT
# define LAMP_RIGHT BUTTON_RIGHT # define LAMP_RIGHT BUTTON_RIGHT
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
# define LAMP_LEFT BUTTON_PREV
# define LAMP_RIGHT BUTTON_NEXT
#else #else
# error Missing key definitions for this keypad # error Missing key definitions for this keypad
#endif #endif

View file

@ -190,6 +190,15 @@ const struct button_mapping generic_directions[] =
{ PLA_DOWN_REPEAT, BUTTON_DOWN|BUTTON_REW, BUTTON_NONE}, { PLA_DOWN_REPEAT, BUTTON_DOWN|BUTTON_REW, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REW, BUTTON_NONE}, { PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REW, BUTTON_NONE},
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REW, BUTTON_NONE}, { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REW, BUTTON_NONE},
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
{ PLA_UP, BUTTON_UP, BUTTON_NONE},
{ PLA_DOWN, BUTTON_DOWN, BUTTON_NONE},
{ PLA_LEFT, BUTTON_PREV, BUTTON_NONE},
{ PLA_RIGHT, BUTTON_NEXT, BUTTON_NONE},
{ PLA_UP_REPEAT, BUTTON_UP, BUTTON_NONE},
{ PLA_DOWN_REPEAT, BUTTON_DOWN, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_PREV|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_RIGHT_REPEAT, BUTTON_NEXT|BUTTON_REPEAT, BUTTON_NONE},
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
@ -326,6 +335,13 @@ const struct button_mapping generic_left_right_fire[] =
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REW, BUTTON_NONE}, { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REW, BUTTON_NONE},
{ PLA_FIRE, BUTTON_UP, BUTTON_NONE}, { PLA_FIRE, BUTTON_UP, BUTTON_NONE},
{ PLA_FIRE_REPEAT, BUTTON_UP|BUTTON_REW, BUTTON_NONE}, { PLA_FIRE_REPEAT, BUTTON_UP|BUTTON_REW, BUTTON_NONE},
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
{ PLA_LEFT, BUTTON_PREV, BUTTON_NONE},
{ PLA_RIGHT, BUTTON_NEXT, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_PREV|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_RIGHT_REPEAT, BUTTON_NEXT|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_FIRE, BUTTON_OK, BUTTON_NONE},
{ PLA_FIRE_REPEAT, BUTTON_OK|BUTTON_REPEAT, BUTTON_NONE},
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
@ -499,6 +515,12 @@ const struct button_mapping generic_actions[] =
{PLA_MENU, BUTTON_PLAY, BUTTON_NONE}, {PLA_MENU, BUTTON_PLAY, BUTTON_NONE},
{PLA_FIRE, BUTTON_UP, BUTTON_NONE}, {PLA_FIRE, BUTTON_UP, BUTTON_NONE},
{PLA_FIRE_REPEAT, BUTTON_UP|BUTTON_REW, BUTTON_NONE}, {PLA_FIRE_REPEAT, BUTTON_UP|BUTTON_REW, BUTTON_NONE},
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
{PLA_QUIT, BUTTON_REC, BUTTON_NONE},
{PLA_START, BUTTON_PLAY, BUTTON_NONE},
{PLA_MENU, BUTTON_MENU, BUTTON_NONE},
{PLA_FIRE, BUTTON_OK, BUTTON_NONE},
{PLA_FIRE_REPEAT, BUTTON_OK|BUTTON_REPEAT, BUTTON_NONE},
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
@ -589,8 +611,13 @@ const struct button_mapping generic_increase_decrease[] =
{PLA_DEC, BUTTON_DOWN, BUTTON_NONE}, {PLA_DEC, BUTTON_DOWN, BUTTON_NONE},
{PLA_INC_REPEAT, BUTTON_UP|BUTTON_REW, BUTTON_NONE}, {PLA_INC_REPEAT, BUTTON_UP|BUTTON_REW, BUTTON_NONE},
{PLA_DEC_REPEAT, BUTTON_DOWN|BUTTON_REW, BUTTON_NONE}, {PLA_DEC_REPEAT, BUTTON_DOWN|BUTTON_REW, BUTTON_NONE},
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
{PLA_INC, BUTTON_UP, BUTTON_NONE},
{PLA_DEC, BUTTON_DOWN, BUTTON_NONE},
{PLA_INC_REPEAT, BUTTON_UP, BUTTON_NONE},
{PLA_DEC_REPEAT, BUTTON_DOWN, BUTTON_NONE},
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
{CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE} {CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
}; };

View file

@ -186,6 +186,13 @@ const unsigned char rockbox16x7[] = {
#define LP_DEC_Y BUTTON_DOWN #define LP_DEC_Y BUTTON_DOWN
#define LP_INC_Y BUTTON_UP #define LP_INC_Y BUTTON_UP
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define LP_QUIT BUTTON_REC
#define LP_DEC_X BUTTON_PREV
#define LP_INC_X BUTTON_NEXT
#define LP_DEC_Y BUTTON_DOWN
#define LP_INC_Y BUTTON_UP
#else #else
#define LP_QUIT BUTTON_OFF #define LP_QUIT BUTTON_OFF
#define LP_DEC_X BUTTON_LEFT #define LP_DEC_X BUTTON_LEFT

View file

@ -164,6 +164,11 @@ PLUGIN_HEADER
#define MOSAIQUE_SPEED BUTTON_UP #define MOSAIQUE_SPEED BUTTON_UP
#define MOSAIQUE_RESTART BUTTON_DOWN #define MOSAIQUE_RESTART BUTTON_DOWN
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define MOSAIQUE_QUIT BUTTON_REC
#define MOSAIQUE_SPEED BUTTON_PLAY
#define MOSAIQUE_RESTART BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -314,6 +314,17 @@ PLUGIN_HEADER
#define ROCKBLOX_DROP BUTTON_FFWD #define ROCKBLOX_DROP BUTTON_FFWD
#define ROCKBLOX_RESTART (BUTTON_REC|BUTTON_REW) #define ROCKBLOX_RESTART (BUTTON_REC|BUTTON_REW)
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define ROCKBLOX_OFF BUTTON_REC
#define ROCKBLOX_ROTATE_RIGHT BUTTON_PLAY
#define ROCKBLOX_ROTATE_LEFT BUTTON_MENU
#define ROCKBLOX_DOWN BUTTON_DOWN
#define ROCKBLOX_LEFT BUTTON_PREV
#define ROCKBLOX_RIGHT BUTTON_NEXT
#define ROCKBLOX_DROP BUTTON_OK
#define ROCKBLOX_RESTART BUTTON_CANCEL
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -79,6 +79,9 @@ PLUGIN_HEADER
#define SNOW_QUIT BUTTON_REC #define SNOW_QUIT BUTTON_REC
#define SNOW_RC_QUIT BUTTON_RC_REC #define SNOW_RC_QUIT BUTTON_RC_REC
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define SNOW_QUIT BUTTON_REC
#else #else
#define SNOW_QUIT BUTTON_OFF #define SNOW_QUIT BUTTON_OFF
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)

View file

@ -102,6 +102,9 @@ static bool abort;
#elif CONFIG_KEYPAD == ONDAVX777_PAD #elif CONFIG_KEYPAD == ONDAVX777_PAD
#define STATS_STOP BUTTON_POWER #define STATS_STOP BUTTON_POWER
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define STATS_STOP BUTTON_REC
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -215,6 +215,14 @@ PLUGIN_HEADER
#define STOPWATCH_SCROLL_UP BUTTON_UP #define STOPWATCH_SCROLL_UP BUTTON_UP
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN #define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define STOPWATCH_QUIT BUTTON_REC
#define STOPWATCH_START_STOP BUTTON_PLAY
#define STOPWATCH_RESET_TIMER BUTTON_OK
#define STOPWATCH_LAP_TIMER BUTTON_MENU
#define STOPWATCH_SCROLL_UP BUTTON_UP
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -352,6 +352,18 @@ PLUGIN_HEADER
#define VIEWER_MENU BUTTON_PLAY #define VIEWER_MENU BUTTON_PLAY
#define VIEWER_AUTOSCROLL BUTTON_REW #define VIEWER_AUTOSCROLL BUTTON_REW
/* Packard Bell Vibe 500 keys */
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
#define VIEWER_QUIT BUTTON_REC
#define VIEWER_PAGE_UP BUTTON_OK
#define VIEWER_PAGE_DOWN BUTTON_CANCEL
#define VIEWER_LINE_UP BUTTON_UP
#define VIEWER_LINE_DOWN BUTTON_DOWN
#define VIEWER_SCREEN_LEFT BUTTON_PREV
#define VIEWER_SCREEN_RIGHT BUTTON_NEXT
#define VIEWER_MENU BUTTON_MENU
#define VIEWER_AUTOSCROLL BUTTON_PLAY
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

2
tools/configure vendored
View file

@ -2467,7 +2467,7 @@ fi
bmp2rb_native="$rootdir/tools/bmp2rb -f 5" bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
output="jukebox.mi4" output="jukebox.mi4"
appextra="recorder:gui" appextra="recorder:gui"
plugins="no" plugins="yes"
swcodec="yes" swcodec="yes"
boottool="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBBL" boottool="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBBL"
bootoutput="rockbox.mi4" bootoutput="rockbox.mi4"