summaryrefslogtreecommitdiff
path: root/apps/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps')
-rw-r--r--apps/keymaps/keymap-h1x0_h3x0.c60
-rw-r--r--apps/keymaps/keymap-ondio.c12
-rw-r--r--apps/keymaps/keymap-recorder.c15
-rw-r--r--apps/keymaps/keymap-x5.c15
4 files changed, 96 insertions, 6 deletions
diff --git a/apps/keymaps/keymap-h1x0_h3x0.c b/apps/keymaps/keymap-h1x0_h3x0.c
index 5a6f823d53..969bb9c46b 100644
--- a/apps/keymaps/keymap-h1x0_h3x0.c
+++ b/apps/keymaps/keymap-h1x0_h3x0.c
@@ -197,6 +197,17 @@ const struct button_mapping button_context_pitchscreen[] = {
197 LAST_ITEM_IN_LIST 197 LAST_ITEM_IN_LIST
198}; /* button_context_pitchcreen */ 198}; /* button_context_pitchcreen */
199 199
200const struct button_mapping button_context_recscreen[] = {
201 { ACTION_REC_PAUSE, BUTTON_ON, BUTTON_NONE },
202 { ACTION_REC_NEWFILE, BUTTON_REC, BUTTON_NONE },
203 { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE },
204 { ACTION_SETTINGS_INC, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
205 { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE },
206 { ACTION_SETTINGS_DEC, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
207
208 LAST_ITEM_IN_LIST
209}; /* button_context_recscreen */
210
200/***************************************************************************** 211/*****************************************************************************
201 * Remote control mappings 212 * Remote control mappings
202 *****************************************************************************/ 213 *****************************************************************************/
@@ -384,7 +395,7 @@ const struct button_mapping button_context_settingsgraphical_h100remote[] = {
384 { ACTION_STD_NEXTREPEAT, BUTTON_RC_BITRATE|BUTTON_REPEAT, BUTTON_NONE }, 395 { ACTION_STD_NEXTREPEAT, BUTTON_RC_BITRATE|BUTTON_REPEAT, BUTTON_NONE },
385 396
386 LAST_ITEM_IN_LIST 397 LAST_ITEM_IN_LIST
387}; 398}; /* button_context_recscreen_h100remote*/
388 399
389const struct button_mapping button_context_settingsgraphical_h300lcdremote[] = { 400const struct button_mapping button_context_settingsgraphical_h300lcdremote[] = {
390 { ACTION_SETTINGS_INC, BUTTON_RC_FF, BUTTON_NONE }, 401 { ACTION_SETTINGS_INC, BUTTON_RC_FF, BUTTON_NONE },
@@ -397,7 +408,7 @@ const struct button_mapping button_context_settingsgraphical_h300lcdremote[] =
397 { ACTION_STD_NEXTREPEAT, BUTTON_RC_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, 408 { ACTION_STD_NEXTREPEAT, BUTTON_RC_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE },
398 409
399 LAST_ITEM_IN_LIST 410 LAST_ITEM_IN_LIST
400}; 411}; /* button_context_recscreen_h300lcdremote */
401 412
402const struct button_mapping button_context_yesno_h100remote[] = { 413const struct button_mapping button_context_yesno_h100remote[] = {
403 { ACTION_YESNO_ACCEPT, BUTTON_RC_MENU, BUTTON_NONE }, 414 { ACTION_YESNO_ACCEPT, BUTTON_RC_MENU, BUTTON_NONE },
@@ -477,6 +488,29 @@ const struct button_mapping button_context_pitchscreen_h300lcdremote[] = {
477 LAST_ITEM_IN_LIST 488 LAST_ITEM_IN_LIST
478}; 489};
479 490
491const struct button_mapping button_context_recscreen_h100remote[] = {
492 { ACTION_REC_LCD, BUTTON_RC_VOL_DOWN, BUTTON_NONE },
493 { ACTION_REC_PAUSE, BUTTON_RC_ON, BUTTON_NONE },
494 { ACTION_REC_NEWFILE, BUTTON_RC_REC, BUTTON_NONE },
495 { ACTION_SETTINGS_INC, BUTTON_RC_BITRATE, BUTTON_NONE },
496 { ACTION_SETTINGS_INC, BUTTON_RC_BITRATE|BUTTON_REPEAT, BUTTON_NONE },
497 { ACTION_SETTINGS_DEC, BUTTON_RC_SOURCE, BUTTON_NONE },
498 { ACTION_SETTINGS_DEC, BUTTON_RC_SOURCE|BUTTON_REPEAT, BUTTON_NONE },
499
500 LAST_ITEM_IN_LIST
501};
502
503const struct button_mapping button_context_recscreen_h300lcdremote[] = {
504 { ACTION_REC_LCD, BUTTON_RC_SOURCE, BUTTON_NONE },
505 { ACTION_REC_PAUSE, BUTTON_RC_ON, BUTTON_NONE },
506 { ACTION_REC_NEWFILE, BUTTON_RC_REC, BUTTON_NONE },
507 { ACTION_SETTINGS_INC, BUTTON_RC_FF, BUTTON_NONE },
508 { ACTION_SETTINGS_INC, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE },
509 { ACTION_SETTINGS_DEC, BUTTON_RC_REW, BUTTON_NONE },
510 { ACTION_SETTINGS_DEC, BUTTON_RC_REW|BUTTON_REPEAT, BUTTON_NONE },
511
512 LAST_ITEM_IN_LIST
513};
480 514
481 515
482/* the actual used tables */ 516/* the actual used tables */
@@ -497,7 +531,9 @@ static const struct button_mapping
497 *remote_btn_ctxt_quickscreen 531 *remote_btn_ctxt_quickscreen
498 = button_context_quickscreen_h100remote, 532 = button_context_quickscreen_h100remote,
499 *remote_btn_ctxt_pitchscreen 533 *remote_btn_ctxt_pitchscreen
500 = button_context_pitchscreen_h100remote; 534 = button_context_pitchscreen_h100remote,
535 *remote_button_ctxt_recscreen
536 = button_context_recscreen_h100remote;
501 537
502static int _remote_type = 0; 538static int _remote_type = 0;
503 539
@@ -519,6 +555,7 @@ static void remap_remote(void)
519 remote_btn_ctxt_bmark = NULL; 555 remote_btn_ctxt_bmark = NULL;
520 remote_btn_ctxt_quickscreen = NULL; 556 remote_btn_ctxt_quickscreen = NULL;
521 remote_btn_ctxt_pitchscreen = NULL; 557 remote_btn_ctxt_pitchscreen = NULL;
558 remote_button_ctxt_recscreen = NULL;
522 break; 559 break;
523 560
524 case REMOTETYPE_H100_LCD: 561 case REMOTETYPE_H100_LCD:
@@ -538,7 +575,9 @@ static void remap_remote(void)
538 remote_btn_ctxt_quickscreen 575 remote_btn_ctxt_quickscreen
539 = button_context_quickscreen_h100remote, 576 = button_context_quickscreen_h100remote,
540 remote_btn_ctxt_pitchscreen 577 remote_btn_ctxt_pitchscreen
541 = button_context_pitchscreen_h100remote; 578 = button_context_pitchscreen_h100remote,
579 remote_button_ctxt_recscreen
580 = button_context_recscreen_h100remote;
542 break; 581 break;
543 582
544 case REMOTETYPE_H300_LCD: 583 case REMOTETYPE_H300_LCD:
@@ -558,7 +597,9 @@ static void remap_remote(void)
558 remote_btn_ctxt_quickscreen 597 remote_btn_ctxt_quickscreen
559 = button_context_quickscreen_h300lcdremote, 598 = button_context_quickscreen_h300lcdremote,
560 remote_btn_ctxt_pitchscreen 599 remote_btn_ctxt_pitchscreen
561 = button_context_pitchscreen_h300lcdremote; 600 = button_context_pitchscreen_h300lcdremote,
601 remote_button_ctxt_recscreen
602 = button_context_recscreen_h300lcdremote;
562 break; 603 break;
563 604
564 case REMOTETYPE_H300_NONLCD: /* FIXME: add its tables */ 605 case REMOTETYPE_H300_NONLCD: /* FIXME: add its tables */
@@ -578,7 +619,9 @@ static void remap_remote(void)
578 remote_btn_ctxt_quickscreen 619 remote_btn_ctxt_quickscreen
579 = button_context_quickscreen_h300lcdremote, 620 = button_context_quickscreen_h300lcdremote,
580 remote_btn_ctxt_pitchscreen 621 remote_btn_ctxt_pitchscreen
581 = button_context_pitchscreen_h300lcdremote; 622 = button_context_pitchscreen_h300lcdremote,
623 remote_button_ctxt_recscreen
624 = button_context_recscreen_h300lcdremote;
582#if 0 625#if 0
583 remote_btn_ctxt_std = 626 remote_btn_ctxt_std =
584 remote_btn_ctxt_wps = 627 remote_btn_ctxt_wps =
@@ -592,6 +635,7 @@ static void remap_remote(void)
592 remote_btn_ctxt_bmark = 635 remote_btn_ctxt_bmark =
593 remote_btn_ctxt_quickscreen = 636 remote_btn_ctxt_quickscreen =
594 remote_btn_ctxt_pitchscreen = 637 remote_btn_ctxt_pitchscreen =
638 remote_button_ctxt_recscreen =
595#endif 639#endif
596 break; 640 break;
597 641
@@ -641,6 +685,8 @@ const struct button_mapping* get_context_mapping_remote(int context)
641 return remote_btn_ctxt_quickscreen; 685 return remote_btn_ctxt_quickscreen;
642 case CONTEXT_PITCHSCREEN: 686 case CONTEXT_PITCHSCREEN:
643 return remote_btn_ctxt_pitchscreen; 687 return remote_btn_ctxt_pitchscreen;
688 case CONTEXT_RECSCREEN:
689 return remote_button_ctxt_recscreen;
644 } 690 }
645 return remote_btn_ctxt_std; 691 return remote_btn_ctxt_std;
646} 692}
@@ -683,6 +729,8 @@ const struct button_mapping* get_context_mapping(int context)
683 return button_context_quickscreen; 729 return button_context_quickscreen;
684 case CONTEXT_PITCHSCREEN: 730 case CONTEXT_PITCHSCREEN:
685 return button_context_pitchscreen; 731 return button_context_pitchscreen;
732 case CONTEXT_RECSCREEN:
733 return button_context_recscreen;
686 } 734 }
687 return button_context_standard; 735 return button_context_standard;
688} 736}
diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c
index 5476268065..57bdcc324a 100644
--- a/apps/keymaps/keymap-ondio.c
+++ b/apps/keymaps/keymap-ondio.c
@@ -127,6 +127,16 @@ const struct button_mapping button_context_pitchscreen[] = {
127 LAST_ITEM_IN_LIST 127 LAST_ITEM_IN_LIST
128}; /* button_context_quickscreen */ 128}; /* button_context_quickscreen */
129 129
130const struct button_mapping button_context_recscreen[] = {
131 { ACTION_REC_PAUSE, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
132 { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE },
133 { ACTION_SETTINGS_INC, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
134 { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE },
135 { ACTION_SETTINGS_DEC, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
136
137 LAST_ITEM_IN_LIST
138}; /* button_context_recscreen */
139
130const struct button_mapping* get_context_mapping( int context ) 140const struct button_mapping* get_context_mapping( int context )
131{ 141{
132 switch( context ) 142 switch( context )
@@ -153,6 +163,8 @@ const struct button_mapping* get_context_mapping( int context )
153 /* else fall through to CUSTOM|1 */ 163 /* else fall through to CUSTOM|1 */
154 case CONTEXT_CUSTOM|1: 164 case CONTEXT_CUSTOM|1:
155 return button_context_tree; 165 return button_context_tree;
166 case CONTEXT_RECSCREEN:
167 return button_context_recscreen;
156 168
157 case CONTEXT_LIST: 169 case CONTEXT_LIST:
158 case CONTEXT_MAINMENU: 170 case CONTEXT_MAINMENU:
diff --git a/apps/keymaps/keymap-recorder.c b/apps/keymaps/keymap-recorder.c
index 8cb6790fe7..72e04071a9 100644
--- a/apps/keymaps/keymap-recorder.c
+++ b/apps/keymaps/keymap-recorder.c
@@ -143,6 +143,18 @@ static const struct button_mapping button_context_pitchscreen[] = {
143 LAST_ITEM_IN_LIST 143 LAST_ITEM_IN_LIST
144}; /* button_context_pitchcreen */ 144}; /* button_context_pitchcreen */
145 145
146const struct button_mapping button_context_recscreen[] = {
147 { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE },
148 { ACTION_REC_F2, BUTTON_F2, BUTTON_NONE },
149 { ACTION_REC_F3, BUTTON_F3, BUTTON_NONE },
150 { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE },
151 { ACTION_SETTINGS_INC, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
152 { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE },
153 { ACTION_SETTINGS_DEC, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
154
155 LAST_ITEM_IN_LIST
156}; /* button_context_recscreen */
157
146/***************************************************************************** 158/*****************************************************************************
147 * Remote control mappings 159 * Remote control mappings
148 *****************************************************************************/ 160 *****************************************************************************/
@@ -212,6 +224,9 @@ const struct button_mapping* get_context_mapping( int context )
212 case CONTEXT_QUICKSCREEN: 224 case CONTEXT_QUICKSCREEN:
213 return button_context_quickscreen; 225 return button_context_quickscreen;
214 226
227 case CONTEXT_RECSCREEN:
228 return button_context_recscreen;
229
215 case CONTEXT_STD: 230 case CONTEXT_STD:
216 case CONTEXT_LIST: 231 case CONTEXT_LIST:
217 case CONTEXT_MAINMENU: 232 case CONTEXT_MAINMENU:
diff --git a/apps/keymaps/keymap-x5.c b/apps/keymaps/keymap-x5.c
index b04932f02f..3752b35f9c 100644
--- a/apps/keymaps/keymap-x5.c
+++ b/apps/keymaps/keymap-x5.c
@@ -202,6 +202,19 @@ const struct button_mapping remote_button_context_wps[] = {
202 LAST_ITEM_IN_LIST 202 LAST_ITEM_IN_LIST
203}; 203};
204 204
205const struct button_mapping button_context_recscreen[] = {
206 { ACTION_REC_PAUSE, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY },
207 { ACTION_STD_CANCEL, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY },
208 { ACTION_REC_NEWFILE, BUTTON_REC|BUTTON_REL, BUTTON_REC },
209 { ACTION_STD_MENU, BUTTON_REC|BUTTON_REPEAT, BUTTON_REC },
210 { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE },
211 { ACTION_SETTINGS_INC, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
212 { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE },
213 { ACTION_SETTINGS_DEC, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
214
215 LAST_ITEM_IN_LIST
216}; /* button_context_recscreen */
217
205 218
206static const struct button_mapping* get_context_mapping_remote( int context ) 219static const struct button_mapping* get_context_mapping_remote( int context )
207{ 220{
@@ -252,6 +265,8 @@ const struct button_mapping* get_context_mapping( int context )
252 return button_context_quickscreen; 265 return button_context_quickscreen;
253 case CONTEXT_PITCHSCREEN: 266 case CONTEXT_PITCHSCREEN:
254 return button_context_pitchscreen; 267 return button_context_pitchscreen;
268 case CONTEXT_RECSCREEN:
269 return button_context_recscreen;
255 case CONTEXT_LIST: 270 case CONTEXT_LIST:
256 case CONTEXT_MAINMENU: 271 case CONTEXT_MAINMENU:
257 default: 272 default: