From bedeac440e7b9355696a689a55e9a5e82aca931b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 28 May 2010 21:08:52 +0000 Subject: Fix typo that made alarmclock exit immediately and add scrollwheel actions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26363 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/alarmclock.c | 11 +++++++++-- 1 file 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; -- cgit v1.2.3