summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2010-04-01 03:14:44 +0000
committerJeffrey Goode <jeffg7@gmail.com>2010-04-01 03:14:44 +0000
commitd5e6bc7a8c413218ec1372fd54157e9639ab67b4 (patch)
tree2be93c700ef9c5e8f85cc7dbbfab7f9f842c92f0 /apps/gui/wps.c
parent39e78993f317349dacfc4e8d1abb703117636696 (diff)
downloadrockbox-d5e6bc7a8c413218ec1372fd54157e9639ab67b4.tar.gz
rockbox-d5e6bc7a8c413218ec1372fd54157e9639ab67b4.zip
FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before they can be switched on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25414 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index b6a42769fe..afd7f3f2d0 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -888,10 +888,12 @@ long gui_wps_show(void)
888 switch(button) 888 switch(button)
889 { 889 {
890 case ACTION_WPS_CONTEXT: 890 case ACTION_WPS_CONTEXT:
891 case ACTION_WPS_HOTKEY:
891 { 892 {
893 bool hotkey = button == ACTION_WPS_HOTKEY;
892 gwps_leave_wps(); 894 gwps_leave_wps();
893 int retval = onplay(wps_state.id3->path, 895 int retval = onplay(wps_state.id3->path,
894 FILE_ATTR_AUDIO, CONTEXT_WPS); 896 FILE_ATTR_AUDIO, CONTEXT_WPS, hotkey);
895 /* if music is stopped in the context menu we want to exit the wps */ 897 /* if music is stopped in the context menu we want to exit the wps */
896 if (retval == ONPLAY_MAINMENU 898 if (retval == ONPLAY_MAINMENU
897 || !audio_status()) 899 || !audio_status())