summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Rauh <johnbthetenth@gmail.com>2017-04-18 17:45:15 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-16 23:57:50 +0200
commit0291db372edbf5c2b589cbb5d5d01fdc1763cd62 (patch)
treeb4d26b67aa22d265376f5976ead48aa33d2a09f3
parent8b744571c0fa6a2805334a1de6f139db6c119393 (diff)
downloadrockbox-0291db372edbf5c2b589cbb5d5d01fdc1763cd62.tar.gz
rockbox-0291db372edbf5c2b589cbb5d5d01fdc1763cd62.tar.bz2
rockbox-0291db372edbf5c2b589cbb5d5d01fdc1763cd62.zip
For Sony players that have explicit volume keys, make better use of the up and down button
Longpress Up: pitch screen Down: playlist view Change-Id: Ibb1032cefd32ce7a3fc309d6ee8d1ba0914583f6
-rw-r--r--apps/keymaps/keymap-nwz.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-nwz.c b/apps/keymaps/keymap-nwz.c
index 90a26e54f8..406bfa19dc 100644
--- a/apps/keymaps/keymap-nwz.c
+++ b/apps/keymaps/keymap-nwz.c
@@ -71,13 +71,19 @@ static const struct button_mapping button_context_wps[] = {
{ ACTION_WPS_VOLUP, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_WPS_VOLDOWN, BUTTON_VOL_DOWN, BUTTON_NONE },
{ ACTION_WPS_VOLDOWN, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE },
-#endif
+
+ { ACTION_WPS_PITCHSCREEN, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_WPS_VIEW_PLAYLIST, BUTTON_DOWN, BUTTON_NONE },
+
+#else
{ ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_WPS_VOLUP, BUTTON_UP, BUTTON_NONE },
{ ACTION_WPS_VOLDOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_WPS_VOLDOWN, BUTTON_DOWN, BUTTON_NONE },
+#endif
+
{ ACTION_WPS_MENU, BUTTON_BACK|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_WPS_BROWSE, BUTTON_BACK|BUTTON_REL, BUTTON_BACK },