diff options
author | Johannes Rauh <johnbthetenth@gmail.com> | 2017-04-18 17:45:15 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-09-16 23:57:50 +0200 |
commit | 0291db372edbf5c2b589cbb5d5d01fdc1763cd62 (patch) | |
tree | b4d26b67aa22d265376f5976ead48aa33d2a09f3 | |
parent | 8b744571c0fa6a2805334a1de6f139db6c119393 (diff) | |
download | rockbox-0291db372edbf5c2b589cbb5d5d01fdc1763cd62.tar.gz 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.c | 8 |
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[] = { | |||
71 | { ACTION_WPS_VOLUP, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, | 71 | { ACTION_WPS_VOLUP, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, |
72 | { ACTION_WPS_VOLDOWN, BUTTON_VOL_DOWN, BUTTON_NONE }, | 72 | { ACTION_WPS_VOLDOWN, BUTTON_VOL_DOWN, BUTTON_NONE }, |
73 | { ACTION_WPS_VOLDOWN, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 73 | { ACTION_WPS_VOLDOWN, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
74 | #endif | 74 | |
75 | { ACTION_WPS_PITCHSCREEN, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | ||
76 | { ACTION_WPS_VIEW_PLAYLIST, BUTTON_DOWN, BUTTON_NONE }, | ||
77 | |||
78 | #else | ||
75 | 79 | ||
76 | { ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 80 | { ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
77 | { ACTION_WPS_VOLUP, BUTTON_UP, BUTTON_NONE }, | 81 | { ACTION_WPS_VOLUP, BUTTON_UP, BUTTON_NONE }, |
78 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 82 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
79 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN, BUTTON_NONE }, | 83 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN, BUTTON_NONE }, |
80 | 84 | ||
85 | #endif | ||
86 | |||
81 | { ACTION_WPS_MENU, BUTTON_BACK|BUTTON_REPEAT, BUTTON_NONE }, | 87 | { ACTION_WPS_MENU, BUTTON_BACK|BUTTON_REPEAT, BUTTON_NONE }, |
82 | { ACTION_WPS_BROWSE, BUTTON_BACK|BUTTON_REL, BUTTON_BACK }, | 88 | { ACTION_WPS_BROWSE, BUTTON_BACK|BUTTON_REL, BUTTON_BACK }, |
83 | 89 | ||