summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-05-28 21:12:23 +0000
committerThomas Martitz <kugel@rockbox.org>2010-05-28 21:12:23 +0000
commit3a5473ecbe6373bcc15916549a5b37ebfe7cb59f (patch)
treebe0c41eac73345d8cf5800f31ca0cb9b7ad3b96e
parent91c626b077d76aee53e14adf5aa80fc09796fe15 (diff)
downloadrockbox-3a5473ecbe6373bcc15916549a5b37ebfe7cb59f.tar.gz
rockbox-3a5473ecbe6373bcc15916549a5b37ebfe7cb59f.zip
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
-rw-r--r--apps/plugins/alarmclock.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugins/alarmclock.c b/apps/plugins/alarmclock.c
index 23ad886f6c..a22a2f29a5 100644
--- a/apps/plugins/alarmclock.c
+++ b/apps/plugins/alarmclock.c
@@ -125,7 +125,7 @@ enum plugin_status plugin_start(const void* parameter)
while(!quit) {
button = get_button();
- if (button == PLA_EXIT || PLA_CANCEL)
+ if (button == PLA_EXIT || button == PLA_CANCEL)
quit = true;
FOR_NB_SCREENS(i) {
@@ -141,11 +141,18 @@ enum plugin_status plugin_start(const void* parameter)
switch (button) {
case PLA_UP:
case PLA_UP_REPEAT:
+#ifdef HAVE_SCROLLWHEEL
+ case PLA_SCROLL_FWD:
+ case PLA_SCROLL_FWD_REPEAT:
+#endif
alarm[current] = (alarm[current] + 1) % maxval[current];
break;
-
case PLA_DOWN:
case PLA_DOWN_REPEAT:
+#ifdef HAVE_SCROLLWHEEL
+ case PLA_SCROLL_BACK:
+ case PLA_SCROLL_BACK_REPEAT:
+#endif
alarm[current] = (alarm[current] + maxval[current] - 1)
% maxval[current];
break;