summaryrefslogtreecommitdiff
path: root/apps/recorder/wormlet.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-24 17:22:12 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-24 17:22:12 +0000
commitb1b8bd4dd159e90f9e197c8870953da079162639 (patch)
tree27238f1b5a1535de0604e423ca91236bb3e2f833 /apps/recorder/wormlet.c
parentc909b4b42e88a8e797e58a5e3e5ecf3716ae4783 (diff)
downloadrockbox-b1b8bd4dd159e90f9e197c8870953da079162639.tar.gz
rockbox-b1b8bd4dd159e90f9e197c8870953da079162639.zip
Moved on_screen, f2_screen, f3_screen and handle_usb (renamed usb_screen) to a new file: screens.c.
typedef Menu replaced with a bool. All code now calls usb_screen() for usb handling. Nearly all code now deals with USB connect/disconnect properly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2401 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/wormlet.c')
-rw-r--r--apps/recorder/wormlet.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/recorder/wormlet.c b/apps/recorder/wormlet.c
index acebbad8bf..0edd550966 100644
--- a/apps/recorder/wormlet.c
+++ b/apps/recorder/wormlet.c
@@ -34,6 +34,7 @@
34#include "menu.h" 34#include "menu.h"
35#include "rtc.h" 35#include "rtc.h"
36#include "lang.h" 36#include "lang.h"
37#include "screens.h"
37 38
38/* size of the field the worm lives in */ 39/* size of the field the worm lives in */
39#define FIELD_RECT_X 1 40#define FIELD_RECT_X 1
@@ -1888,7 +1889,7 @@ extern bool use_old_rect;
1888/** 1889/**
1889 * Main entry point from the menu to start the game control. 1890 * Main entry point from the menu to start the game control.
1890 */ 1891 */
1891Menu wormlet(void) 1892bool wormlet(void)
1892{ 1893{
1893 bool wormDead = false; 1894 bool wormDead = false;
1894 int button; 1895 int button;
@@ -1974,6 +1975,10 @@ Menu wormlet(void)
1974 use_remote = true; 1975 use_remote = true;
1975 } 1976 }
1976 break; 1977 break;
1978
1979 case SYS_USB_CONNECTED:
1980 usb_screen();
1981 return true;
1977 } 1982 }
1978 } while (button != BUTTON_PLAY && 1983 } while (button != BUTTON_PLAY &&
1979 button != BUTTON_OFF && button != BUTTON_ON); 1984 button != BUTTON_OFF && button != BUTTON_ON);
@@ -2007,7 +2012,7 @@ Menu wormlet(void)
2007 } 2012 }
2008 while (button != BUTTON_OFF); 2013 while (button != BUTTON_OFF);
2009 2014
2010 return MENU_OK; 2015 return false;
2011} 2016}
2012 2017
2013 2018