summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/pluginlib_actions.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index d587f80ba4..20e7bd7ea3 100644
--- a/apps/plugins/lib/pluginlib_actions.c
+++ b/apps/plugins/lib/pluginlib_actions.c
@@ -190,6 +190,15 @@ const struct button_mapping generic_directions[] =
{ PLA_DOWN_REPEAT, BUTTON_DOWN|BUTTON_REW, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_LEFT|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
#error pluginlib_actions: Unsupported keypad
#endif
@@ -326,6 +335,13 @@ const struct button_mapping generic_left_right_fire[] =
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REW, BUTTON_NONE},
{ PLA_FIRE, BUTTON_UP, 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
#error pluginlib_actions: Unsupported keypad
#endif
@@ -499,6 +515,12 @@ const struct button_mapping generic_actions[] =
{PLA_MENU, BUTTON_PLAY, BUTTON_NONE},
{PLA_FIRE, BUTTON_UP, 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
#error pluginlib_actions: Unsupported keypad
#endif
@@ -589,8 +611,13 @@ const struct button_mapping generic_increase_decrease[] =
{PLA_DEC, BUTTON_DOWN, BUTTON_NONE},
{PLA_INC_REPEAT, BUTTON_UP|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
-#error pluginlib_actions: Unsupported keypad
+ #error pluginlib_actions: Unsupported keypad
#endif
{CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
};