summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 04e0bb278c..126d29f40a 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -317,6 +317,9 @@ int menu_show(int m)
317 317
318 switch( key ) { 318 switch( key ) {
319 case MENU_PREV: 319 case MENU_PREV:
320#ifdef MENU_RC_PREV
321 case MENU_RC_PREV:
322#endif
320 case MENU_PREV | BUTTON_REPEAT: 323 case MENU_PREV | BUTTON_REPEAT:
321 if (menus[m].cursor) { 324 if (menus[m].cursor) {
322 /* keep the cursor at 1/3 of the screen */ 325 /* keep the cursor at 1/3 of the screen */
@@ -336,6 +339,9 @@ int menu_show(int m)
336 break; 339 break;
337 340
338 case MENU_NEXT: 341 case MENU_NEXT:
342#ifdef MENU_RC_NEXT
343 case MENU_RC_NEXT:
344#endif
339 case MENU_NEXT | BUTTON_REPEAT: 345 case MENU_NEXT | BUTTON_REPEAT:
340 if (menus[m].cursor < menus[m].itemcount-1) { 346 if (menus[m].cursor < menus[m].itemcount-1) {
341 /* keep the cursor at 2/3 of the screen */ 347 /* keep the cursor at 2/3 of the screen */
@@ -357,6 +363,9 @@ int menu_show(int m)
357#ifdef MENU_ENTER2 363#ifdef MENU_ENTER2
358 case MENU_ENTER2: 364 case MENU_ENTER2:
359#endif 365#endif
366#ifdef MENU_RC_ENTER
367 case MENU_RC_ENTER:
368#endif
360 /* Erase current display state */ 369 /* Erase current display state */
361 lcd_clear_display(); 370 lcd_clear_display();
362 return menus[m].cursor; 371 return menus[m].cursor;
@@ -368,6 +377,9 @@ int menu_show(int m)
368#ifdef MENU_EXIT3 377#ifdef MENU_EXIT3
369 case MENU_EXIT3: 378 case MENU_EXIT3:
370#endif 379#endif
380#ifdef MENU_RC_EXIT
381 case MENU_RC_EXIT:
382#endif
371 lcd_stop_scroll(); 383 lcd_stop_scroll();
372 exit = true; 384 exit = true;
373 break; 385 break;