iPods: Allow using scroll wheel to change volume on QuickScreen
As suggested by forum user yuuiko Change-Id: Ifb989f9513a9e3c59e4ab0f38c0a8e2675c68dd8
This commit is contained in:
parent
0f439bee99
commit
cde5ae755f
4 changed files with 21 additions and 1 deletions
|
@ -245,6 +245,8 @@ enum {
|
||||||
ACTION_QS_RIGHT,
|
ACTION_QS_RIGHT,
|
||||||
ACTION_QS_DOWN,
|
ACTION_QS_DOWN,
|
||||||
ACTION_QS_TOP,
|
ACTION_QS_TOP,
|
||||||
|
ACTION_QS_VOLUP,
|
||||||
|
ACTION_QS_VOLDOWN,
|
||||||
|
|
||||||
/* pitchscreen */
|
/* pitchscreen */
|
||||||
/* obviously ignore if you dont have thise screen */
|
/* obviously ignore if you dont have thise screen */
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "font.h"
|
#include "font.h"
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
#include "sound.h"
|
||||||
#include "action.h"
|
#include "action.h"
|
||||||
#include "settings_list.h"
|
#include "settings_list.h"
|
||||||
#include "lang.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)
|
else if (button == button_enter)
|
||||||
can_quit = true;
|
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)
|
if ((button == button_enter) && can_quit)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -132,6 +132,10 @@ static const struct button_mapping button_context_quickscreen[] = {
|
||||||
{ ACTION_QS_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
|
{ ACTION_QS_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
|
||||||
{ ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
|
{ ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
|
||||||
{ ACTION_STD_CANCEL, BUTTON_SELECT, BUTTON_NONE },
|
{ ACTION_STD_CANCEL, BUTTON_SELECT, BUTTON_NONE },
|
||||||
|
{ ACTION_QS_VOLDOWN, BUTTON_SCROLL_BACK, BUTTON_NONE },
|
||||||
|
{ ACTION_QS_VOLDOWN, BUTTON_SCROLL_BACK|BUTTON_REPEAT, BUTTON_NONE },
|
||||||
|
{ ACTION_QS_VOLUP, BUTTON_SCROLL_FWD, BUTTON_NONE },
|
||||||
|
{ ACTION_QS_VOLUP, BUTTON_SCROLL_FWD|BUTTON_REPEAT, BUTTON_NONE },
|
||||||
|
|
||||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
||||||
}; /* button_context_quickscreen */
|
}; /* button_context_quickscreen */
|
||||||
|
|
|
@ -250,6 +250,12 @@ utilities. A detailed description of the different plugins is to be found in
|
||||||
Therefore if you select the same setting at e.g. the top and bottom of the
|
Therefore if you select the same setting at e.g. the top and bottom of the
|
||||||
quickscreen, then pressing up and down will cycle through this setting in
|
quickscreen, then pressing up and down will cycle through this setting in
|
||||||
opposite directions.
|
opposite directions.
|
||||||
|
|
||||||
|
\opt{ipod}{
|
||||||
|
\note{You can always adjust the sound volume on the QuickScreen.
|
||||||
|
To do so, slide your finger around the click wheel as you would on the
|
||||||
|
While Playing Screen.}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
\section{\label{ref:MainMenuShortcuts}Shortcuts}
|
\section{\label{ref:MainMenuShortcuts}Shortcuts}
|
||||||
|
|
Loading…
Reference in a new issue