From ade5d7b848bf9c0d46bb14c85528453f969c9429 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 26 Jul 2004 16:06:59 +0000 Subject: First step in revamping the USB event handling, paving the way for the upcoming SYS_POWER_OFF event git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4951 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index 16719ad13a..6d45a64023 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -232,3 +232,14 @@ bool clean_shutdown(void) #endif return false; } + +int default_event_handler(int button) +{ + switch(button) + { + case SYS_USB_CONNECTED: + usb_screen(); + return SYS_USB_CONNECTED; + } + return 0; +} -- cgit v1.2.3