summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-02 15:39:23 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-02 15:39:23 +0000
commitafb49fb45202b6b4c9b6d6260db2063764f2b6d8 (patch)
tree7cc9da2a31141d37cbb0bba6411756bb75331603
parent439b0ee128649de9fbeb6cdf7e9ff264bd98ed7e (diff)
fuze+: add pluginlib keymap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30640 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lib/pluginlib_actions.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index 510d569bcf..4b0f3a6945 100644
--- a/apps/plugins/lib/pluginlib_actions.c
+++ b/apps/plugins/lib/pluginlib_actions.c
@@ -114,7 +114,8 @@ const struct button_mapping pla_main_ctx[] =
|| (CONFIG_KEYPAD == SANSA_M200_PAD)\
|| (CONFIG_KEYPAD == SANSA_E200_PAD) \
|| (CONFIG_KEYPAD == SANSA_FUZE_PAD) \
- || (CONFIG_KEYPAD == SAMSUNG_YH_PAD))
+ || (CONFIG_KEYPAD == SAMSUNG_YH_PAD) \
+ || (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD))
{ PLA_UP, BUTTON_UP, BUTTON_NONE },
{ PLA_DOWN, BUTTON_DOWN, BUTTON_NONE },
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE },
@@ -396,6 +397,12 @@ const struct button_mapping pla_main_ctx[] =
{PLA_SELECT, BUTTON_PLAY, BUTTON_NONE},
{PLA_SELECT_REL, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY},
{PLA_SELECT_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE},
+#elif (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
+ {PLA_CANCEL, BUTTON_BACK, BUTTON_NONE},
+ {PLA_EXIT, BUTTON_BACK|BUTTON_REPEAT, BUTTON_NONE},
+ {PLA_SELECT, BUTTON_SELECT, BUTTON_NONE},
+ {PLA_SELECT_REL, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT},
+ {PLA_SELECT_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
#else
# ifndef HAVE_TOUCHSCREEN
# error pluginlib_actions: No actions defined