summaryrefslogtreecommitdiffstats
path: root/apps/keymaps/keymap-fuzeplus.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-fuzeplus.c
parenta00bd421acc0fc11588f0494be2bb532dc93d904 (diff)
downloadrockbox-84fe501f53.tar.gz
rockbox-84fe501f53.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-fuzeplus.c')
-rw-r--r--apps/keymaps/keymap-fuzeplus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-fuzeplus.c b/apps/keymaps/keymap-fuzeplus.c
index 9ce5a79fc2..01032ddf07 100644
--- a/apps/keymaps/keymap-fuzeplus.c
+++ b/apps/keymaps/keymap-fuzeplus.c
@@ -409,12 +409,15 @@ const struct button_mapping* get_context_mapping(int context)
{
switch (context)
{
+ case CONTEXT_STD | CONTEXT_LOCKED:
case CONTEXT_STD:
return button_context_standard;
+ case CONTEXT_MAINMENU | CONTEXT_LOCKED:
case CONTEXT_MAINMENU:
return button_context_tree;
case CONTEXT_SETTINGS:
return button_context_settings;
+ case CONTEXT_WPS | CONTEXT_LOCKED:
case CONTEXT_WPS:
return button_context_wps;
case CONTEXT_YESNOSCREEN: