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/settings.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/settings.c')
| -rw-r--r-- | apps/settings.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/settings.c b/apps/settings.c index 31d9232..83d6971 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1362,10 +1362,10 @@ bool set_int(char* string, done = true; break; - case SYS_USB_CONNECTED: - usb_screen(); - return true; - + default: + if(default_event_handler(button) == SYS_USB_CONNECTED) + return true; + break; } if(*variable > max ) *variable = max; @@ -1492,9 +1492,10 @@ bool set_option(char* string, void* variable, enum optiontype type, done = true; break; - case SYS_USB_CONNECTED: - usb_screen(); - return true; + default: + if(default_event_handler(button) == SYS_USB_CONNECTED) + return true; + break; } if ( function && button != BUTTON_NONE) { |