mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 22:52:28 -05:00
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
This commit is contained in:
parent
dbe2ac1ec6
commit
49f1ec8e8a
13 changed files with 300 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue