diff options
| author | Marcoen Hirschberg <marcoen@gmail.com> | 2005-06-12 16:10:17 +0000 |
|---|---|---|
| committer | Marcoen Hirschberg <marcoen@gmail.com> | 2005-06-12 16:10:17 +0000 |
| commit | c19e0f0d02fe1e87f24fc3037edd4e1566280d86 (patch) | |
| tree | c8ba43b560b5a292c0783c40bce82c1019662564 /apps/menu.c | |
| parent | 097444d07cf394919d7eba149dfe81161cd86453 (diff) | |
| download | rockbox-c19e0f0d02fe1e87f24fc3037edd4e1566280d86.zip rockbox-c19e0f0d02fe1e87f24fc3037edd4e1566280d86.tar.gz rockbox-c19e0f0d02fe1e87f24fc3037edd4e1566280d86.tar.bz2 rockbox-c19e0f0d02fe1e87f24fc3037edd4e1566280d86.tar.xz | |
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.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/menu.c b/apps/menu.c index 04e0bb2..126d29f 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -317,6 +317,9 @@ int menu_show(int m) switch( key ) { case MENU_PREV: +#ifdef MENU_RC_PREV + case MENU_RC_PREV: +#endif case MENU_PREV | BUTTON_REPEAT: if (menus[m].cursor) { /* keep the cursor at 1/3 of the screen */ @@ -336,6 +339,9 @@ int menu_show(int m) break; case MENU_NEXT: +#ifdef MENU_RC_NEXT + case MENU_RC_NEXT: +#endif case MENU_NEXT | BUTTON_REPEAT: if (menus[m].cursor < menus[m].itemcount-1) { /* keep the cursor at 2/3 of the screen */ @@ -357,6 +363,9 @@ int menu_show(int m) #ifdef MENU_ENTER2 case MENU_ENTER2: #endif +#ifdef MENU_RC_ENTER + case MENU_RC_ENTER: +#endif /* Erase current display state */ lcd_clear_display(); return menus[m].cursor; @@ -368,6 +377,9 @@ int menu_show(int m) #ifdef MENU_EXIT3 case MENU_EXIT3: #endif +#ifdef MENU_RC_EXIT + case MENU_RC_EXIT: +#endif lcd_stop_scroll(); exit = true; break; |