summaryrefslogtreecommitdiffstats
path: root/apps/plugins/mpegplayer/mpegplayer.c
diff options
context:
space:
mode:
authorNils Stec <nils.stec@gmail.com>2014-06-30 20:24:15 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-06-30 21:20:15 +0200
commitc9816f57bf8782fd2ce6487aa0dc0f739145b631 (patch)
treeaf0f7314182fb8ee278ced53b7f79615312f32d2 /apps/plugins/mpegplayer/mpegplayer.c
parent6e575b6c7011827c042cba7b27537c1ceec9ef24 (diff)
downloadrockbox-c9816f57bf8782fd2ce6487aa0dc0f739145b631.tar.gz
rockbox-c9816f57bf8782fd2ce6487aa0dc0f739145b631.tar.bz2
rockbox-c9816f57bf8782fd2ce6487aa0dc0f739145b631.zip
Introduce plugin keymaps for the Sony NWZ Series
Change-Id: I46b8766bd44118bce4931b7ee71815ae5f51cb2e Reviewed-on: http://gerrit.rockbox.org/879 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index 97fe7d3f4c..69062d5062 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -399,6 +399,15 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define MPEG_RW BUTTON_PREV
#define MPEG_FF BUTTON_NEXT
+#elif CONFIG_KEYPAD == SONY_NWZ_PAD
+#define MPEG_MENU BUTTON_BACK
+#define MPEG_PAUSE BUTTON_PLAY
+#define MPEG_STOP BUTTON_POWER
+#define MPEG_VOLDOWN BUTTON_LEFT
+#define MPEG_VOLUP BUTTON_RIGHT
+#define MPEG_RW BUTTON_UP
+#define MPEG_FF BUTTON_DOWN
+
#else
#error No keymap defined!
#endif