summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ipod.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-ipod.c')
-rw-r--r--apps/keymaps/keymap-ipod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c
index 79a7f8ee82..a6026d3f6d 100644
--- a/apps/keymaps/keymap-ipod.c
+++ b/apps/keymaps/keymap-ipod.c
@@ -167,6 +167,7 @@ static const struct button_mapping button_context_keyboard[] = {
167 LAST_ITEM_IN_LIST 167 LAST_ITEM_IN_LIST
168}; /* button_context_keyboard */ 168}; /* button_context_keyboard */
169 169
170#ifdef HAVE_RECORDING
170const struct button_mapping button_context_recscreen[] = { 171const struct button_mapping button_context_recscreen[] = {
171 172
172 { ACTION_REC_NEWFILE, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, 173 { ACTION_REC_NEWFILE, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY },
@@ -184,6 +185,7 @@ const struct button_mapping button_context_recscreen[] = {
184 185
185 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) 186 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
186}; /* button_context_recscreen */ 187}; /* button_context_recscreen */
188#endif
187 189
188/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 190/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
189const struct button_mapping* get_context_mapping(int context) 191const struct button_mapping* get_context_mapping(int context)
@@ -222,8 +224,10 @@ const struct button_mapping* get_context_mapping(int context)
222 return button_context_pitchscreen; 224 return button_context_pitchscreen;
223 case CONTEXT_KEYBOARD: 225 case CONTEXT_KEYBOARD:
224 return button_context_keyboard; 226 return button_context_keyboard;
227#ifdef HAVE_RECORDING
225 case CONTEXT_RECSCREEN: 228 case CONTEXT_RECSCREEN:
226 return button_context_recscreen; 229 return button_context_recscreen;
230#endif
227 default: 231 default:
228 return button_context_standard; 232 return button_context_standard;
229 } 233 }