summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-touchscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-touchscreen.c')
-rw-r--r--apps/keymaps/keymap-touchscreen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-touchscreen.c b/apps/keymaps/keymap-touchscreen.c
index 37d36a25fc..ce5d01c9dc 100644
--- a/apps/keymaps/keymap-touchscreen.c
+++ b/apps/keymaps/keymap-touchscreen.c
@@ -232,6 +232,19 @@ static const struct button_mapping button_context_keyboard[] = {
232 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_KEYBOARD) 232 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_KEYBOARD)
233}; /* button_context_keyboard */ 233}; /* button_context_keyboard */
234 234
235static const struct button_mapping button_context_radio[] = {
236 { ACTION_STD_PREV, BUTTON_MIDLEFT, BUTTON_NONE },
237 { ACTION_STD_PREVREPEAT, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE },
238 { ACTION_STD_NEXT, BUTTON_MIDRIGHT, BUTTON_NONE },
239 { ACTION_STD_NEXTREPEAT, BUTTON_MIDRIGHT|BUTTON_REPEAT, BUTTON_NONE },
240 { ACTION_FM_MENU, BUTTON_CENTER|BUTTON_REPEAT, BUTTON_CENTER },
241 { ACTION_FM_PRESET, BUTTON_CENTER|BUTTON_REL, BUTTON_NONE },
242 { ACTION_FM_EXIT, BUTTON_TOPLEFT|BUTTON_REL, BUTTON_NONE },
243 { ACTION_FM_MODE, BUTTON_BOTTOMLEFT|BUTTON_REL, BUTTON_NONE },
244 { ACTION_FM_PLAY, BUTTON_TOPRIGHT|BUTTON_REL, BUTTON_NONE },
245 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_FM)
246}; /* button_context_radio */
247
235const struct button_mapping* get_context_mapping(int context) 248const struct button_mapping* get_context_mapping(int context)
236{ 249{
237 if (context & CONTEXT_CUSTOM2 250 if (context & CONTEXT_CUSTOM2
@@ -274,6 +287,8 @@ const struct button_mapping* get_context_mapping(int context)
274 287
275 case CONTEXT_YESNOSCREEN: 288 case CONTEXT_YESNOSCREEN:
276 return button_context_yesno; 289 return button_context_yesno;
290 case CONTEXT_FM:
291 return button_context_radio;
277 case CONTEXT_BOOKMARKSCREEN: 292 case CONTEXT_BOOKMARKSCREEN:
278 return button_context_bmark; 293 return button_context_bmark;
279 case CONTEXT_QUICKSCREEN: 294 case CONTEXT_QUICKSCREEN: