diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-02-24 12:44:39 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-03 22:37:14 +0000 |
commit | cde5ae755fde5b645ab287a91c613f803a88d79d (patch) | |
tree | 808bda47448ea72e52a335e87e15101083da6b72 /apps/gui | |
parent | 0f439bee9914999f4d63f7677f0604c3ecd8242b (diff) | |
download | rockbox-cde5ae755fde5b645ab287a91c613f803a88d79d.tar.gz rockbox-cde5ae755fde5b645ab287a91c613f803a88d79d.zip |
iPods: Allow using scroll wheel to change volume on QuickScreen
As suggested by forum user yuuiko
Change-Id: Ifb989f9513a9e3c59e4ab0f38c0a8e2675c68dd8
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/quickscreen.c | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ | |||
26 | #include "font.h" | 26 | #include "font.h" |
27 | #include "kernel.h" | 27 | #include "kernel.h" |
28 | #include "misc.h" | 28 | #include "misc.h" |
29 | #include "sound.h" | ||
29 | #include "action.h" | 30 | #include "action.h" |
30 | #include "settings_list.h" | 31 | #include "settings_list.h" |
31 | #include "lang.h" | 32 | #include "lang.h" |
@@ -361,7 +362,14 @@ static bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_ente | |||
361 | } | 362 | } |
362 | else if (button == button_enter) | 363 | else if (button == button_enter) |
363 | can_quit = true; | 364 | can_quit = true; |
364 | 365 | else if (button == ACTION_QS_VOLUP) { | |
366 | global_settings.volume += sound_steps(SOUND_VOLUME); | ||
367 | setvol(); | ||
368 | } | ||
369 | else if (button == ACTION_QS_VOLDOWN) { | ||
370 | global_settings.volume -= sound_steps(SOUND_VOLUME); | ||
371 | setvol(); | ||
372 | } | ||
365 | if ((button == button_enter) && can_quit) | 373 | if ((button == button_enter) && can_quit) |
366 | break; | 374 | break; |
367 | 375 | ||