diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-06-01 21:00:31 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-06-01 21:00:31 +0000 |
commit | fd11471a3f9bfbb5f5bdf22866e861bae56ad8ea (patch) | |
tree | 8a61f852ef81a9dd5950e9ebc9ffb8ac41bf3390 /apps/keymaps/keymap-ondavx747.c | |
parent | 5212f03124c486239479d75cafb8017d84f63ee9 (diff) |
Onda VX747: try at implementing FM tuner support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21160 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-ondavx747.c')
-rw-r--r-- | apps/keymaps/keymap-ondavx747.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ondavx747.c b/apps/keymaps/keymap-ondavx747.c index 0b7f1b3870..0b0339acac 100644 --- a/apps/keymaps/keymap-ondavx747.c +++ b/apps/keymaps/keymap-ondavx747.c @@ -101,6 +101,7 @@ static const struct button_mapping button_context_settings_right_is_inc[] = { }; /* button_context_settingsgraphical */ static const struct button_mapping button_context_yesno[] = { + { ACTION_YESNO_ACCEPT, BUTTON_MENU, BUTTON_NONE }, LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) }; /* button_context_settings_yesno */ @@ -142,6 +143,19 @@ static const struct button_mapping button_context_pitchscreen[] = { LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) }; /* button_context_pitchcreen */ +/** FM Radio Screen **/ +static const struct button_mapping button_context_radio[] = { + { ACTION_STD_PREV, BUTTON_VOL_DOWN, BUTTON_NONE }, + { ACTION_STD_PREVREPEAT, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_STD_NEXT, BUTTON_VOL_UP, BUTTON_NONE }, + { ACTION_STD_NEXTREPEAT, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_FM_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_FM_PRESET, BUTTON_MENU|BUTTON_REL, BUTTON_NONE }, + { ACTION_FM_MODE, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, + { ACTION_FM_EXIT, BUTTON_POWER|BUTTON_REPEAT, BUTTON_NONE }, + LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) +}; /* button_context_radio */ + static const struct button_mapping button_context_keyboard[] = { { ACTION_KBD_PAGE_FLIP, BUTTON_MENU, BUTTON_NONE }, { ACTION_KBD_CURSOR_LEFT, BUTTON_VOL_DOWN, BUTTON_NONE }, @@ -201,6 +215,8 @@ const struct button_mapping* target_get_context_mapping(int context) case CONTEXT_YESNOSCREEN: return button_context_yesno; + case CONTEXT_FM: + return button_context_radio; case CONTEXT_BOOKMARKSCREEN: return button_context_bmark; case CONTEXT_QUICKSCREEN: |