summaryrefslogtreecommitdiff
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
parent6df3565f49973b5a1d450378789da8befce4744e (diff)
downloadrockbox-a0d098bdce8fe91a76e7b64e4815a7b8f1a90c34.tar.gz
rockbox-a0d098bdce8fe91a76e7b64e4815a7b8f1a90c34.zip
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
-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[])
919 cursorpos = (cursorpos + 6 + 1) % 6; 919 cursorpos = (cursorpos + 6 + 1) % 6;
920 break; 920 break;
921 case BUTTON_UP: 921 case BUTTON_UP:
922 case BUTTON_UP | BUTTON_REPEAT:
922 timedate[cursorpos] = (timedate[cursorpos] + steps - min + 1) % steps + min; 923 timedate[cursorpos] = (timedate[cursorpos] + steps - min + 1) % steps + min;
923 if(timedate[cursorpos] == 0) 924 if(timedate[cursorpos] == 0)
924 timedate[cursorpos] += min; 925 timedate[cursorpos] += min;
925 break; 926 break;
926 case BUTTON_DOWN: 927 case BUTTON_DOWN:
928 case BUTTON_DOWN | BUTTON_REPEAT:
927 timedate[cursorpos]=(timedate[cursorpos]+steps - min - 1) % steps + min; 929 timedate[cursorpos]=(timedate[cursorpos]+steps - min - 1) % steps + min;
928 if(timedate[cursorpos] == 0) 930 if(timedate[cursorpos] == 0)
929 timedate[cursorpos] += min; 931 timedate[cursorpos] += min;