diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-01-02 13:03:48 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-01-02 13:19:43 -0500 |
commit | 84fe501f53f966894b226172faa50b9fd0d651f5 (patch) | |
tree | a955f18a80d2dd4591d64899ee1d78ea8dc214e3 /apps/plugins/keyremap.c | |
parent | a00bd421acc0fc11588f0494be2bb532dc93d904 (diff) | |
download | rockbox-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/keyremap.c')
-rw-r--r-- | apps/plugins/keyremap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/keyremap.c b/apps/plugins/keyremap.c index cb19fcf92c..f0b36a735e 100644 --- a/apps/plugins/keyremap.c +++ b/apps/plugins/keyremap.c | |||
@@ -53,13 +53,13 @@ struct context_flags { | |||
53 | /* flags added to context_name[] */ | 53 | /* flags added to context_name[] */ |
54 | static struct context_flags context_flags[] = { | 54 | static struct context_flags context_flags[] = { |
55 | {"UNKNOWN", 0},/* index 0 is an Error */ | 55 | {"UNKNOWN", 0},/* index 0 is an Error */ |
56 | #ifdef HAVE_LOCKED_ACTIONS | 56 | #ifndef HAS_BUTTON_HOLD |
57 | {"LOCKED", CONTEXT_LOCKED}, | 57 | {"LOCKED", CONTEXT_LOCKED}, |
58 | #endif | 58 | #endif |
59 | /*{"PLUGIN", CONTEXT_PLUGIN}, need a custom action list and a way to supply */ | 59 | /*{"PLUGIN", CONTEXT_PLUGIN}, need a custom action list and a way to supply */ |
60 | #if BUTTON_REMOTE != 0 | 60 | #if BUTTON_REMOTE != 0 |
61 | {"REMOTE", CONTEXT_REMOTE}, | 61 | {"REMOTE", CONTEXT_REMOTE}, |
62 | #ifdef HAVE_LOCKED_ACTIONS | 62 | #ifndef HAS_BUTTON_HOLD |
63 | {"REMOTE_LOCKED", CONTEXT_REMOTE | CONTEXT_LOCKED}, | 63 | {"REMOTE_LOCKED", CONTEXT_REMOTE | CONTEXT_LOCKED}, |
64 | #endif | 64 | #endif |
65 | #endif /* BUTTON_REMOTE != 0 */ | 65 | #endif /* BUTTON_REMOTE != 0 */ |