diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2014-06-14 13:56:46 +0000 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2014-06-18 18:06:17 +0000 |
commit | 7107f0ac86370d3279892785af345597e89fe585 (patch) | |
tree | 4b545b553f9b286c88d48c6288a46a734eefaa2b /apps/keymaps | |
parent | f8785c8f6df95ee83a20135b1b1e1aede5a921b1 (diff) |
HDD1630: Add keymap for recording.
Change-Id: Idb4162cae8c41d31fa3751674cf323ab0ff35e62
Diffstat (limited to 'apps/keymaps')
-rw-r--r-- | apps/keymaps/keymap-hdd1630.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-hdd1630.c b/apps/keymaps/keymap-hdd1630.c index 3c10e0bb9b..ca55f7fc26 100644 --- a/apps/keymaps/keymap-hdd1630.c +++ b/apps/keymaps/keymap-hdd1630.c @@ -264,6 +264,25 @@ static const struct button_mapping button_context_keyboard[] = { LAST_ITEM_IN_LIST }; /* button_context_keyboard */ +#ifdef HAVE_RECORDING +const struct button_mapping button_context_recscreen[] = { + { ACTION_REC_NEWFILE, BUTTON_VIEW|BUTTON_REL, BUTTON_VIEW }, + { ACTION_STD_MENU, BUTTON_MENU, BUTTON_NONE }, + { ACTION_REC_PAUSE, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, + { ACTION_STD_CANCEL, BUTTON_POWER, BUTTON_NONE }, + { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, + { ACTION_STD_NEXT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, + { ACTION_STD_PREV, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE }, + { ACTION_SETTINGS_INCREPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE }, + { ACTION_SETTINGS_DECREPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, + + LAST_ITEM_IN_LIST +}; /* button_context_recscreen */ +#endif + #if CONFIG_TUNER static const struct button_mapping button_context_radio[] = { { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REL, BUTTON_MENU }, @@ -436,6 +455,10 @@ const struct button_mapping* get_context_mapping(int context) case CONTEXT_KEYBOARD: case CONTEXT_MORSE_INPUT: return button_context_keyboard; +#ifdef HAVE_RECORDING + case CONTEXT_RECSCREEN: + return button_context_recscreen; +#endif #if CONFIG_TUNER case CONTEXT_FM: return button_context_radio; |