summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ypr1.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-ypr1.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-ypr1.c')
-rw-r--r--apps/keymaps/keymap-ypr1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ypr1.c b/apps/keymaps/keymap-ypr1.c
index d47047912b..0f991a881d 100644
--- a/apps/keymaps/keymap-ypr1.c
+++ b/apps/keymaps/keymap-ypr1.c
@@ -134,13 +134,16 @@ const struct button_mapping* target_get_context_mapping(int context)
134{ 134{
135 switch (context) 135 switch (context)
136 { 136 {
137 case CONTEXT_STD | CONTEXT_LOCKED:
137 case CONTEXT_STD: 138 case CONTEXT_STD:
138 return button_context_standard; 139 return button_context_standard;
140 case CONTEXT_WPS | CONTEXT_LOCKED:
139 case CONTEXT_WPS: 141 case CONTEXT_WPS:
140 return button_context_wps; 142 return button_context_wps;
141 143
142 case CONTEXT_LIST: 144 case CONTEXT_LIST:
143 return button_context_list; 145 return button_context_list;
146 case CONTEXT_MAINMENU | CONTEXT_LOCKED:
144 case CONTEXT_MAINMENU: 147 case CONTEXT_MAINMENU:
145 case CONTEXT_CUSTOM|CONTEXT_TREE: 148 case CONTEXT_CUSTOM|CONTEXT_TREE:
146 return button_context_tree; 149 return button_context_tree;