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-fuzeplus.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/keymaps/keymap-fuzeplus.c') 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: -- cgit v1.2.3