diff options
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 273f5d8e61..ae9dc453f5 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -64,6 +64,8 @@ | |||
64 | #include "appevents.h" | 64 | #include "appevents.h" |
65 | #include "viewport.h" | 65 | #include "viewport.h" |
66 | #include "pcmbuf.h" | 66 | #include "pcmbuf.h" |
67 | #include "option_select.h" | ||
68 | #include "dsp.h" | ||
67 | 69 | ||
68 | #define RESTORE_WPS_INSTANTLY 0l | 70 | #define RESTORE_WPS_INSTANTLY 0l |
69 | #define RESTORE_WPS_NEXT_SECOND ((long)(HZ+current_tick)) | 71 | #define RESTORE_WPS_NEXT_SECOND ((long)(HZ+current_tick)) |
@@ -732,7 +734,29 @@ long gui_wps_show(void) | |||
732 | restore = true; | 734 | restore = true; |
733 | } | 735 | } |
734 | break; | 736 | break; |
735 | 737 | #ifdef HAVE_TOUCHSCREEN | |
738 | case ACTION_TOUCH_SHUFFLE: /* toggle shuffle mode */ | ||
739 | { | ||
740 | global_settings.playlist_shuffle = | ||
741 | !global_settings.playlist_shuffle; | ||
742 | #if CONFIG_CODEC == SWCODEC | ||
743 | dsp_set_replaygain(); | ||
744 | #endif | ||
745 | if (global_settings.playlist_shuffle) | ||
746 | playlist_randomise(NULL, current_tick, true); | ||
747 | else | ||
748 | playlist_sort(NULL, true); | ||
749 | } | ||
750 | break; | ||
751 | case ACTION_TOUCH_REPMODE: /* cycle the repeat mode setting */ | ||
752 | { | ||
753 | const struct settings_list *rep_setting = | ||
754 | find_setting(&global_settings.repeat_mode, NULL); | ||
755 | option_select_next_val(rep_setting, false, true); | ||
756 | audio_flush_and_reload_tracks(); | ||
757 | } | ||
758 | break; | ||
759 | #endif /* HAVE_TOUCHSCREEN */ | ||
736 | case ACTION_REDRAW: /* yes are locked, just redraw */ | 760 | case ACTION_REDRAW: /* yes are locked, just redraw */ |
737 | /* fall througgh */ | 761 | /* fall througgh */ |
738 | case ACTION_NONE: /* Timeout, do an partial update */ | 762 | case ACTION_NONE: /* Timeout, do an partial update */ |