diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-26 16:06:59 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-26 16:06:59 +0000 |
| commit | ade5d7b848bf9c0d46bb14c85528453f969c9429 (patch) | |
| tree | 197aa919b9a3c2a89f77d12b01cc1c2c23f7e37f /apps/misc.c | |
| parent | 3d91885718a1fb9d6d55f07f67a9a1942a352c5e (diff) | |
| download | rockbox-ade5d7b848bf9c0d46bb14c85528453f969c9429.zip rockbox-ade5d7b848bf9c0d46bb14c85528453f969c9429.tar.gz rockbox-ade5d7b848bf9c0d46bb14c85528453f969c9429.tar.bz2 rockbox-ade5d7b848bf9c0d46bb14c85528453f969c9429.tar.xz | |
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
Diffstat (limited to 'apps/misc.c')
| -rw-r--r-- | apps/misc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c index 16719ad..6d45a64 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; +} |