mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Backport 26363:
Fix typo that made alarmclock exit immediately and add scrollwheel actions. git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_6@26364 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
91c626b077
commit
3a5473ecbe
1 changed files with 9 additions and 2 deletions
|
@ -125,7 +125,7 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
while(!quit) {
|
while(!quit) {
|
||||||
button = get_button();
|
button = get_button();
|
||||||
|
|
||||||
if (button == PLA_EXIT || PLA_CANCEL)
|
if (button == PLA_EXIT || button == PLA_CANCEL)
|
||||||
quit = true;
|
quit = true;
|
||||||
|
|
||||||
FOR_NB_SCREENS(i) {
|
FOR_NB_SCREENS(i) {
|
||||||
|
@ -141,11 +141,18 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
switch (button) {
|
switch (button) {
|
||||||
case PLA_UP:
|
case PLA_UP:
|
||||||
case PLA_UP_REPEAT:
|
case PLA_UP_REPEAT:
|
||||||
|
#ifdef HAVE_SCROLLWHEEL
|
||||||
|
case PLA_SCROLL_FWD:
|
||||||
|
case PLA_SCROLL_FWD_REPEAT:
|
||||||
|
#endif
|
||||||
alarm[current] = (alarm[current] + 1) % maxval[current];
|
alarm[current] = (alarm[current] + 1) % maxval[current];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PLA_DOWN:
|
case PLA_DOWN:
|
||||||
case PLA_DOWN_REPEAT:
|
case PLA_DOWN_REPEAT:
|
||||||
|
#ifdef HAVE_SCROLLWHEEL
|
||||||
|
case PLA_SCROLL_BACK:
|
||||||
|
case PLA_SCROLL_BACK_REPEAT:
|
||||||
|
#endif
|
||||||
alarm[current] = (alarm[current] + maxval[current] - 1)
|
alarm[current] = (alarm[current] + maxval[current] - 1)
|
||||||
% maxval[current];
|
% maxval[current];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue