summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2005-06-12 16:10:17 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2005-06-12 16:10:17 +0000
commitc19e0f0d02fe1e87f24fc3037edd4e1566280d86 (patch)
treec8ba43b560b5a292c0783c40bce82c1019662564 /apps/menu.c
parent097444d07cf394919d7eba149dfe81161cd86453 (diff)
downloadrockbox-c19e0f0d02fe1e87f24fc3037edd4e1566280d86.tar.gz
rockbox-c19e0f0d02fe1e87f24fc3037edd4e1566280d86.zip
Add remote control support to tree and menu. Move defines from wps.c to wps.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6692 a1c6a512-1295-4272-9138-f99709370657
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;