diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-28 21:08:52 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-28 21:08:52 +0000 |
commit | bedeac440e7b9355696a689a55e9a5e82aca931b (patch) | |
tree | 0cf19f9324cf1802ecf398df4aad0d5731536e31 | |
parent | 36b4b39a7e34125166f8e34b3dd7b9f242388d77 (diff) |
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
-rw-r--r-- | apps/plugins/alarmclock.c | 11 |
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; |