summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-nwz.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-nwz.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-nwz.c')
-rw-r--r--apps/keymaps/keymap-nwz.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-nwz.c b/apps/keymaps/keymap-nwz.c
index 1fae8d3594..3901645eb2 100644
--- a/apps/keymaps/keymap-nwz.c
+++ b/apps/keymaps/keymap-nwz.c
@@ -359,12 +359,15 @@ const struct button_mapping* get_context_mapping(int context)
359{ 359{
360 switch (context) 360 switch (context)
361 { 361 {
362 case CONTEXT_STD | CONTEXT_LOCKED:
362 case CONTEXT_STD: 363 case CONTEXT_STD:
363 return button_context_standard; 364 return button_context_standard;
365 case CONTEXT_MAINMENU | CONTEXT_LOCKED:
364 case CONTEXT_MAINMENU: 366 case CONTEXT_MAINMENU:
365 return button_context_tree; 367 return button_context_tree;
366 case CONTEXT_SETTINGS: 368 case CONTEXT_SETTINGS:
367 return button_context_settings; 369 return button_context_settings;
370 case CONTEXT_WPS | CONTEXT_LOCKED:
368 case CONTEXT_WPS: 371 case CONTEXT_WPS:
369 return button_context_wps; 372 return button_context_wps;
370 case CONTEXT_YESNOSCREEN: 373 case CONTEXT_YESNOSCREEN: