From 84fe501f53f966894b226172faa50b9fd0d651f5 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 2 Jan 2023 13:03:48 -0500 Subject: 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 --- apps/keymaps/keymap-rk27xx-generic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/keymaps/keymap-rk27xx-generic.c') diff --git a/apps/keymaps/keymap-rk27xx-generic.c b/apps/keymaps/keymap-rk27xx-generic.c index d837c608fc..5be8762af3 100644 --- a/apps/keymaps/keymap-rk27xx-generic.c +++ b/apps/keymaps/keymap-rk27xx-generic.c @@ -166,8 +166,10 @@ 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_WPS | CONTEXT_LOCKED: case CONTEXT_WPS: return button_context_wps; #ifdef CONFIG_TUNER @@ -190,6 +192,7 @@ const struct button_mapping* get_context_mapping(int context) #endif case CONTEXT_TREE: case CONTEXT_LIST: + case CONTEXT_MAINMENU | CONTEXT_LOCKED: case CONTEXT_MAINMENU: case CONTEXT_SETTINGS: -- cgit v1.2.3