summaryrefslogtreecommitdiff
path: root/apps/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps')
-rw-r--r--apps/keymaps/keymap-h10.c10
-rw-r--r--apps/keymaps/keymap-ipod.c8
2 files changed, 18 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-h10.c b/apps/keymaps/keymap-h10.c
index 33bcb13269..16c8c49258 100644
--- a/apps/keymaps/keymap-h10.c
+++ b/apps/keymaps/keymap-h10.c
@@ -298,6 +298,12 @@ static const struct button_mapping button_context_bmark[] = {
298 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), 298 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD),
299}; /* button_context_bmark */ 299}; /* button_context_bmark */
300 300
301const struct button_mapping button_context_recscreen[] = {
302 { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE },
303
304 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
305}; /* button_context_recscreen */
306
301static const struct button_mapping* get_context_mapping_remote( int context ) 307static const struct button_mapping* get_context_mapping_remote( int context )
302{ 308{
303 context ^= CONTEXT_REMOTE; 309 context ^= CONTEXT_REMOTE;
@@ -325,6 +331,8 @@ static const struct button_mapping* get_context_mapping_remote( int context )
325 return remote_button_context_quickscreen; 331 return remote_button_context_quickscreen;
326 case CONTEXT_PITCHSCREEN: 332 case CONTEXT_PITCHSCREEN:
327 return remote_button_context_pitchscreen; 333 return remote_button_context_pitchscreen;
334 case CONTEXT_RECSCREEN:
335 return button_context_recscreen;
328 336
329 default: 337 default:
330 return remote_button_context_standard; 338 return remote_button_context_standard;
@@ -374,6 +382,8 @@ const struct button_mapping* get_context_mapping(int context)
374 return button_context_pitchscreen; 382 return button_context_pitchscreen;
375 case CONTEXT_KEYBOARD: 383 case CONTEXT_KEYBOARD:
376 return button_context_keyboard; 384 return button_context_keyboard;
385 case CONTEXT_RECSCREEN:
386 return button_context_recscreen;
377 387
378 default: 388 default:
379 return button_context_standard; 389 return button_context_standard;
diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c
index 26189d95fe..8ca0c56831 100644
--- a/apps/keymaps/keymap-ipod.c
+++ b/apps/keymaps/keymap-ipod.c
@@ -166,6 +166,12 @@ static const struct button_mapping button_context_keyboard[] = {
166 LAST_ITEM_IN_LIST 166 LAST_ITEM_IN_LIST
167}; /* button_context_keyboard */ 167}; /* button_context_keyboard */
168 168
169const struct button_mapping button_context_recscreen[] = {
170 { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE },
171
172 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
173}; /* button_context_recscreen */
174
169/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 175/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
170const struct button_mapping* get_context_mapping(int context) 176const struct button_mapping* get_context_mapping(int context)
171{ 177{
@@ -202,6 +208,8 @@ const struct button_mapping* get_context_mapping(int context)
202 return button_context_pitchscreen; 208 return button_context_pitchscreen;
203 case CONTEXT_KEYBOARD: 209 case CONTEXT_KEYBOARD:
204 return button_context_keyboard; 210 return button_context_keyboard;
211 case CONTEXT_RECSCREEN:
212 return button_context_recscreen;
205 default: 213 default:
206 return button_context_standard; 214 return button_context_standard;
207 } 215 }