From cde5ae755fde5b645ab287a91c613f803a88d79d Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Wed, 24 Feb 2021 12:44:39 +0100 Subject: iPods: Allow using scroll wheel to change volume on QuickScreen As suggested by forum user yuuiko Change-Id: Ifb989f9513a9e3c59e4ab0f38c0a8e2675c68dd8 --- apps/gui/quickscreen.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/gui') diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 2ce09ae474..b5113df8f6 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c @@ -26,6 +26,7 @@ #include "font.h" #include "kernel.h" #include "misc.h" +#include "sound.h" #include "action.h" #include "settings_list.h" #include "lang.h" @@ -361,7 +362,14 @@ static bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_ente } else if (button == button_enter) can_quit = true; - + else if (button == ACTION_QS_VOLUP) { + global_settings.volume += sound_steps(SOUND_VOLUME); + setvol(); + } + else if (button == ACTION_QS_VOLDOWN) { + global_settings.volume -= sound_steps(SOUND_VOLUME); + setvol(); + } if ((button == button_enter) && can_quit) break; -- cgit v1.2.3