summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-08-28 06:12:53 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-08-28 06:12:53 +0000
commita0d098bdce8fe91a76e7b64e4815a7b8f1a90c34 (patch)
treede2bfb7e705ef0e2480653e881f7be81252d98c5 /apps/settings.c
parent6df3565f49973b5a1d450378789da8befce4744e (diff)
Added REPEAT to UP/DOWN keys in the time/date setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2018 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index cd24ca7825..ef74a5bb92 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -919,11 +919,13 @@ void set_time(char* string, int timedate[])
cursorpos = (cursorpos + 6 + 1) % 6;
break;
case BUTTON_UP:
+ case BUTTON_UP | BUTTON_REPEAT:
timedate[cursorpos] = (timedate[cursorpos] + steps - min + 1) % steps + min;
if(timedate[cursorpos] == 0)
timedate[cursorpos] += min;
break;
case BUTTON_DOWN:
+ case BUTTON_DOWN | BUTTON_REPEAT:
timedate[cursorpos]=(timedate[cursorpos]+steps - min - 1) % steps + min;
if(timedate[cursorpos] == 0)
timedate[cursorpos] += min;