summaryrefslogtreecommitdiff
path: root/apps/plugins/pictureflow
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/plugins/pictureflow
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/plugins/pictureflow')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index a7a0031391..54497d8306 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -967,9 +967,7 @@ const struct custom_format format_transposed = {
967 967
968static const struct button_mapping* get_context_map(int context) 968static const struct button_mapping* get_context_map(int context)
969{ 969{
970#ifdef HAVE_LOCKED_ACTIONS
971 context &= ~CONTEXT_LOCKED; 970 context &= ~CONTEXT_LOCKED;
972#endif
973 return pf_contexts[context & ~CONTEXT_PLUGIN]; 971 return pf_contexts[context & ~CONTEXT_PLUGIN];
974} 972}
975 973