summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ypr0.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-ypr0.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-ypr0.c')
-rw-r--r--apps/keymaps/keymap-ypr0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ypr0.c b/apps/keymaps/keymap-ypr0.c
index 2d6be5b7ec..e6d3bf8868 100644
--- a/apps/keymaps/keymap-ypr0.c
+++ b/apps/keymaps/keymap-ypr0.c
@@ -257,13 +257,16 @@ const struct button_mapping* get_context_mapping(int context)
257{ 257{
258 switch (context) 258 switch (context)
259 { 259 {
260 case CONTEXT_STD | CONTEXT_LOCKED:
260 case CONTEXT_STD: 261 case CONTEXT_STD:
261 return button_context_standard; 262 return button_context_standard;
263 case CONTEXT_WPS | CONTEXT_LOCKED:
262 case CONTEXT_WPS: 264 case CONTEXT_WPS:
263 return button_context_wps; 265 return button_context_wps;
264 266
265 case CONTEXT_LIST: 267 case CONTEXT_LIST:
266 return button_context_list; 268 return button_context_list;
269 case CONTEXT_MAINMENU | CONTEXT_LOCKED:
267 case CONTEXT_MAINMENU: 270 case CONTEXT_MAINMENU:
268 return button_context_mainmenu; 271 return button_context_mainmenu;
269 272