diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-08-03 17:59:43 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-08-04 00:24:38 +0200 |
commit | 51d47c53f7541f66db866709a58ece44475ff332 (patch) | |
tree | 4e3a42185d83466a6a72c6423dde09aca608e825 /apps/keymaps/keymap-nwz.c | |
parent | e73ef014cdc3753f6f6a1d58c56a988e6cf02c0d (diff) | |
download | rockbox-51d47c53f7541f66db866709a58ece44475ff332.tar.gz rockbox-51d47c53f7541f66db866709a58ece44475ff332.zip |
Pitchscreen keymap fixes for Sony NWZ targets
- Pitchscreen control fixed
- Long press assigned
Patch by Igor Poretsky
Change-Id: Ic05ad0556b02de4c994ffc7383f1582d0b9619f4
Diffstat (limited to 'apps/keymaps/keymap-nwz.c')
-rw-r--r-- | apps/keymaps/keymap-nwz.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/keymaps/keymap-nwz.c b/apps/keymaps/keymap-nwz.c index e676f8126e..41edb74e69 100644 --- a/apps/keymaps/keymap-nwz.c +++ b/apps/keymaps/keymap-nwz.c | |||
@@ -115,9 +115,13 @@ static const struct button_mapping button_context_quickscreen[] = { | |||
115 | { ACTION_STD_CANCEL, BUTTON_BACK, BUTTON_NONE }, | 115 | { ACTION_STD_CANCEL, BUTTON_BACK, BUTTON_NONE }, |
116 | { ACTION_STD_CANCEL, BUTTON_POWER, BUTTON_NONE }, | 116 | { ACTION_STD_CANCEL, BUTTON_POWER, BUTTON_NONE }, |
117 | { ACTION_QS_TOP, BUTTON_UP, BUTTON_NONE }, | 117 | { ACTION_QS_TOP, BUTTON_UP, BUTTON_NONE }, |
118 | { ACTION_QS_TOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | ||
118 | { ACTION_QS_DOWN, BUTTON_DOWN, BUTTON_NONE }, | 119 | { ACTION_QS_DOWN, BUTTON_DOWN, BUTTON_NONE }, |
120 | { ACTION_QS_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | ||
119 | { ACTION_QS_LEFT, BUTTON_LEFT, BUTTON_NONE }, | 121 | { ACTION_QS_LEFT, BUTTON_LEFT, BUTTON_NONE }, |
122 | { ACTION_QS_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | ||
120 | { ACTION_QS_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | 123 | { ACTION_QS_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, |
124 | { ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | ||
121 | 125 | ||
122 | LAST_ITEM_IN_LIST | 126 | LAST_ITEM_IN_LIST |
123 | }; /* button_context_quickscreen */ | 127 | }; /* button_context_quickscreen */ |
@@ -246,15 +250,18 @@ static const struct button_mapping button_context_pitchscreen[] = { | |||
246 | { ACTION_PS_DEC_BIG, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 250 | { ACTION_PS_DEC_BIG, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
247 | 251 | ||
248 | { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT, BUTTON_NONE }, | 252 | { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT, BUTTON_NONE }, |
249 | { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 253 | { ACTION_PS_NUDGE_LEFTOFF, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE }, |
250 | { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | 254 | { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, |
251 | { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | 255 | { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE }, |
252 | 256 | ||
253 | { ACTION_PS_RESET, BUTTON_PLAY, BUTTON_NONE }, | 257 | { ACTION_PS_RESET, BUTTON_PLAY, BUTTON_NONE }, |
254 | { ACTION_PS_EXIT, BUTTON_BACK, BUTTON_NONE }, | 258 | { ACTION_PS_TOGGLE_MODE, BUTTON_BACK, BUTTON_NONE }, |
255 | { ACTION_PS_EXIT, BUTTON_POWER, BUTTON_NONE }, | 259 | { ACTION_PS_EXIT, BUTTON_POWER, BUTTON_NONE }, |
256 | 260 | ||
257 | LAST_ITEM_IN_LIST | 261 | { ACTION_PS_SLOWER, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
262 | { ACTION_PS_FASTER, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | ||
263 | |||
264 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) | ||
258 | }; /* button_context_pitchcreen */ | 265 | }; /* button_context_pitchcreen */ |
259 | 266 | ||
260 | static const struct button_mapping button_context_yesno[] = { | 267 | static const struct button_mapping button_context_yesno[] = { |