summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-hdd1630.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-hdd1630.c')
-rw-r--r--apps/keymaps/keymap-hdd1630.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-hdd1630.c b/apps/keymaps/keymap-hdd1630.c
index e4a74cba0e..6b38983d08 100644
--- a/apps/keymaps/keymap-hdd1630.c
+++ b/apps/keymaps/keymap-hdd1630.c
@@ -269,6 +269,19 @@ static const struct button_mapping button_context_keyboard[] = {
269 LAST_ITEM_IN_LIST 269 LAST_ITEM_IN_LIST
270}; /* button_context_keyboard */ 270}; /* button_context_keyboard */
271 271
272#if CONFIG_TUNER
273static const struct button_mapping button_context_radio[] = {
274 { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REL, BUTTON_MENU },
275 { ACTION_FM_MODE, BUTTON_MENU | BUTTON_REPEAT, BUTTON_MENU },
276 { ACTION_FM_PRESET, BUTTON_VIEW, BUTTON_NONE },
277 { ACTION_FM_PLAY, BUTTON_SELECT | BUTTON_REL, BUTTON_SELECT },
278 { ACTION_FM_STOP, BUTTON_SELECT | BUTTON_REPEAT, BUTTON_SELECT },
279 { ACTION_FM_EXIT, BUTTON_POWER, BUTTON_NONE },
280
281 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
282};
283#endif
284
272const struct button_mapping* get_context_mapping(int context) 285const struct button_mapping* get_context_mapping(int context)
273{ 286{
274 switch (context) 287 switch (context)
@@ -312,6 +325,10 @@ const struct button_mapping* get_context_mapping(int context)
312 return button_context_pitchscreen; 325 return button_context_pitchscreen;
313 case CONTEXT_KEYBOARD: 326 case CONTEXT_KEYBOARD:
314 return button_context_keyboard; 327 return button_context_keyboard;
328#if CONFIG_TUNER
329 case CONTEXT_FM:
330 return button_context_radio;
331#endif
315 } 332 }
316 return button_context_standard; 333 return button_context_standard;
317} 334}