From b1b8bd4dd159e90f9e197c8870953da079162639 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 24 Sep 2002 17:22:12 +0000 Subject: 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 --- apps/recorder/wormlet.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/recorder/wormlet.c') 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 @@ #include "menu.h" #include "rtc.h" #include "lang.h" +#include "screens.h" /* size of the field the worm lives in */ #define FIELD_RECT_X 1 @@ -1888,7 +1889,7 @@ extern bool use_old_rect; /** * Main entry point from the menu to start the game control. */ -Menu wormlet(void) +bool wormlet(void) { bool wormDead = false; int button; @@ -1974,6 +1975,10 @@ Menu wormlet(void) use_remote = true; } break; + + case SYS_USB_CONNECTED: + usb_screen(); + return true; } } while (button != BUTTON_PLAY && button != BUTTON_OFF && button != BUTTON_ON); @@ -2007,7 +2012,7 @@ Menu wormlet(void) } while (button != BUTTON_OFF); - return MENU_OK; + return false; } -- cgit v1.2.3