diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-27 09:06:30 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-27 09:06:30 +0000 |
commit | 2816dc9c13f204234b613db5199d2c787a11f0d8 (patch) | |
tree | 841dfbbccd0b621de0b5257c1ecf15d5aa8171a1 /apps/keymaps | |
parent | 93712c97eef684c75b542ca1a30c4e9d1f3fc3fc (diff) | |
download | rockbox-2816dc9c13f204234b613db5199d2c787a11f0d8.tar.gz rockbox-2816dc9c13f204234b613db5199d2c787a11f0d8.zip |
Convert the radio menus to the new system.
Change the way the presets are done (in code).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12500 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps')
-rw-r--r-- | apps/keymaps/keymap-ondio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c index 4274afc29e..401742b363 100644 --- a/apps/keymaps/keymap-ondio.c +++ b/apps/keymaps/keymap-ondio.c | |||
@@ -159,7 +159,7 @@ static const struct button_mapping button_context_keyboard[] = { | |||
159 | 159 | ||
160 | LAST_ITEM_IN_LIST | 160 | LAST_ITEM_IN_LIST |
161 | }; /* button_context_keyboard */ | 161 | }; /* button_context_keyboard */ |
162 | 162 | #if CONFIG_TUNER | |
163 | static const struct button_mapping button_context_radio[] = { | 163 | static const struct button_mapping button_context_radio[] = { |
164 | { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE }, | 164 | { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE }, |
165 | { ACTION_FM_RECORD_DBLPRE, BUTTON_MENU, BUTTON_NONE}, | 165 | { ACTION_FM_RECORD_DBLPRE, BUTTON_MENU, BUTTON_NONE}, |
@@ -176,7 +176,7 @@ static const struct button_mapping button_context_radio[] = { | |||
176 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) | 176 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) |
177 | 177 | ||
178 | }; | 178 | }; |
179 | 179 | #endif | |
180 | const struct button_mapping* get_context_mapping( int context ) | 180 | const struct button_mapping* get_context_mapping( int context ) |
181 | { | 181 | { |
182 | switch( context ) | 182 | switch( context ) |
@@ -207,9 +207,10 @@ const struct button_mapping* get_context_mapping( int context ) | |||
207 | return button_context_recscreen; | 207 | return button_context_recscreen; |
208 | case CONTEXT_KEYBOARD: | 208 | case CONTEXT_KEYBOARD: |
209 | return button_context_keyboard; | 209 | return button_context_keyboard; |
210 | #if CONFIG_TUNER | ||
210 | case CONTEXT_FM: | 211 | case CONTEXT_FM: |
211 | return button_context_radio; | 212 | return button_context_radio; |
212 | 213 | #endif | |
213 | case CONTEXT_LIST: | 214 | case CONTEXT_LIST: |
214 | case CONTEXT_MAINMENU: | 215 | case CONTEXT_MAINMENU: |
215 | default: | 216 | default: |