diff options
Diffstat (limited to 'apps/keymaps/keymap-fiiom3k.c')
-rw-r--r-- | apps/keymaps/keymap-fiiom3k.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-fiiom3k.c b/apps/keymaps/keymap-fiiom3k.c index 440f851650..94d2dbc172 100644 --- a/apps/keymaps/keymap-fiiom3k.c +++ b/apps/keymaps/keymap-fiiom3k.c | |||
@@ -76,6 +76,16 @@ static const struct button_mapping button_context_wps[] = { | |||
76 | LAST_ITEM_IN_LIST | 76 | LAST_ITEM_IN_LIST |
77 | }; /* button_context_wps */ | 77 | }; /* button_context_wps */ |
78 | 78 | ||
79 | static const struct button_mapping button_context_wps_locked[] = { | ||
80 | {ACTION_WPS_SKIPNEXT, BUTTON_VOL_UP|BUTTON_REL, BUTTON_PLAY|BUTTON_VOL_UP}, | ||
81 | {ACTION_WPS_SEEKFWD, BUTTON_PLAY|BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE}, | ||
82 | {ACTION_WPS_STOPSEEK, BUTTON_PLAY|BUTTON_VOL_UP|BUTTON_REL, BUTTON_PLAY|BUTTON_VOL_UP|BUTTON_REPEAT}, | ||
83 | {ACTION_WPS_SKIPPREV, BUTTON_VOL_DOWN|BUTTON_REL, BUTTON_PLAY|BUTTON_VOL_DOWN}, | ||
84 | {ACTION_WPS_SEEKBACK, BUTTON_PLAY|BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE}, | ||
85 | {ACTION_WPS_STOPSEEK, BUTTON_PLAY|BUTTON_VOL_DOWN|BUTTON_REL, BUTTON_PLAY|BUTTON_VOL_DOWN|BUTTON_REPEAT}, | ||
86 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_WPS) | ||
87 | }; /* button_context_wps_locked */ | ||
88 | |||
79 | static const struct button_mapping button_context_tree[] = { | 89 | static const struct button_mapping button_context_tree[] = { |
80 | {ACTION_TREE_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY}, | 90 | {ACTION_TREE_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY}, |
81 | {ACTION_TREE_WPS, BUTTON_BACK|BUTTON_REPEAT, BUTTON_BACK}, | 91 | {ACTION_TREE_WPS, BUTTON_BACK|BUTTON_REPEAT, BUTTON_BACK}, |
@@ -244,6 +254,15 @@ const struct button_mapping* get_context_mapping(int context) | |||
244 | { | 254 | { |
245 | switch (context) | 255 | switch (context) |
246 | { | 256 | { |
257 | case CONTEXT_WPS|CONTEXT_LOCKED: | ||
258 | return button_context_wps_locked; | ||
259 | default: | ||
260 | context &= ~CONTEXT_LOCKED; | ||
261 | break; | ||
262 | } | ||
263 | |||
264 | switch (context) | ||
265 | { | ||
247 | default: | 266 | default: |
248 | case CONTEXT_STD: | 267 | case CONTEXT_STD: |
249 | return button_context_standard; | 268 | return button_context_standard; |