summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ma.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2023-01-02 13:03:48 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2023-01-02 13:19:43 -0500
commit84fe501f53f966894b226172faa50b9fd0d651f5 (patch)
treea955f18a80d2dd4591d64899ee1d78ea8dc214e3 /apps/keymaps/keymap-ma.c
parenta00bd421acc0fc11588f0494be2bb532dc93d904 (diff)
downloadrockbox-84fe501f53f966894b226172faa50b9fd0d651f5.tar.gz
rockbox-84fe501f53f966894b226172faa50b9fd0d651f5.zip
Add locked actions to all soft lock targets
fiio m3k native is currently the only player with defined buttons different from the standard mapping. This allows the user to use the keyremap plugin to specify differing keymaps for their device in the locked state Change-Id: Ie0b447bba0d5978e8d23fed423df30c794afc6f9
Diffstat (limited to 'apps/keymaps/keymap-ma.c')
-rw-r--r--apps/keymaps/keymap-ma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-ma.c b/apps/keymaps/keymap-ma.c
index aaf7df0c01..84d8edd7c4 100644
--- a/apps/keymaps/keymap-ma.c
+++ b/apps/keymaps/keymap-ma.c
@@ -192,6 +192,7 @@ const struct button_mapping* get_context_mapping(int context)
192 { 192 {
193 /* anything that uses button_context_standard */ 193 /* anything that uses button_context_standard */
194 case CONTEXT_LIST: 194 case CONTEXT_LIST:
195 case CONTEXT_STD | CONTEXT_LOCKED:
195 case CONTEXT_STD: 196 case CONTEXT_STD:
196 default: 197 default:
197 return button_context_standard; 198 return button_context_standard;
@@ -220,13 +221,14 @@ const struct button_mapping* get_context_mapping(int context)
220 return button_context_settings_r_is_inc; 221 return button_context_settings_r_is_inc;
221 222
222 case CONTEXT_TREE: 223 case CONTEXT_TREE:
224 case CONTEXT_MAINMENU | CONTEXT_LOCKED:
223 case CONTEXT_MAINMENU: 225 case CONTEXT_MAINMENU:
224 if (global_settings.hold_lr_for_scroll_in_list) 226 if (global_settings.hold_lr_for_scroll_in_list)
225 return button_context_tree_scroll_lr; 227 return button_context_tree_scroll_lr;
226 /* else fall through to CONTEXT_TREE|CONTEXT_CUSTOM */ 228 /* else fall through to CONTEXT_TREE|CONTEXT_CUSTOM */
227 case CONTEXT_TREE|CONTEXT_CUSTOM: 229 case CONTEXT_TREE|CONTEXT_CUSTOM:
228 return button_context_tree; 230 return button_context_tree;
229 231 case CONTEXT_WPS | CONTEXT_LOCKED:
230 case CONTEXT_WPS: 232 case CONTEXT_WPS:
231 return button_context_wps; 233 return button_context_wps;
232 234