diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-10-31 15:32:57 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-10-31 15:32:57 +0000 |
| commit | 49f1ec8e8ad0b4c06df01fcdd4b18037fbe3ebcc (patch) | |
| tree | b185e604dcea64865389f5b149e754ba8ffd3f75 /apps/gui | |
| parent | dbe2ac1ec6f4ed88f267d2a4df024b6dc42a87ff (diff) | |
| download | rockbox-49f1ec8e8ad0b4c06df01fcdd4b18037fbe3ebcc.zip rockbox-49f1ec8e8ad0b4c06df01fcdd4b18037fbe3ebcc.tar.gz rockbox-49f1ec8e8ad0b4c06df01fcdd4b18037fbe3ebcc.tar.bz2 rockbox-49f1ec8e8ad0b4c06df01fcdd4b18037fbe3ebcc.tar.xz | |
Add support multimedia keys/buttons to the core, and adapt Rockbox on android for it (multimedia buttons are found on wired headsets and the lock screen in cyanogenmod).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/wps.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index a5fe304..7d633ad 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -1045,18 +1045,18 @@ long gui_wps_show(void) exit = true; break; #endif - case SYS_POWEROFF: - default_event_handler(SYS_POWEROFF); - break; case ACTION_WPS_VIEW_PLAYLIST: gwps_leave_wps(); return GO_TO_PLAYLIST_VIEWER; break; default: - if(default_event_handler(button) == SYS_USB_CONNECTED) - { - gwps_leave_wps(); - return GO_TO_ROOT; + switch(default_event_handler(button)) + { /* music has been stopped by the default handler */ + case SYS_USB_CONNECTED: + case SYS_CALL_INCOMING: + case BUTTON_MULTIMEDIA_STOP: + gwps_leave_wps(); + return GO_TO_ROOT; } update = true; break; |