summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-nwz.c
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 /apps/keymaps/keymap-nwz.c
parent8b744571c0fa6a2805334a1de6f139db6c119393 (diff)
downloadrockbox-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
Diffstat (limited to 'apps/keymaps/keymap-nwz.c')
-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[] = {
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