diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-10-23 15:09:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-23 15:09:52 +0000 |
commit | 061763b2a679da199f14da5de36b307705b8c7d0 (patch) | |
tree | 18bf0be241b29048e00e6ee0b3c5705a0680a2e1 /apps/recorder | |
parent | b35165649105a2fca40241519234880164bc6fb4 (diff) | |
download | rockbox-061763b2a679da199f14da5de36b307705b8c7d0.tar.gz rockbox-061763b2a679da199f14da5de36b307705b8c7d0.zip |
fixed the check for the release events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2749 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/bounce.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c index a1f22b56fa..f89f699862 100644 --- a/apps/recorder/bounce.c +++ b/apps/recorder/bounce.c | |||
@@ -243,15 +243,13 @@ static int scrollit(void) | |||
243 | char rock[]="Rockbox! Pure pleasure. Pure fun. Oooh. What fun! ;-) "; | 243 | char rock[]="Rockbox! Pure pleasure. Pure fun. Oooh. What fun! ;-) "; |
244 | int letter; | 244 | int letter; |
245 | 245 | ||
246 | while(button_get(false) & BUTTON_REL); | ||
247 | |||
248 | lcd_clear_display(); | 246 | lcd_clear_display(); |
249 | while(1) | 247 | while(1) |
250 | { | 248 | { |
251 | b = button_get_w_tmo(HZ/10); | 249 | b = button_get_w_tmo(HZ/10); |
252 | if ( b & BUTTON_OFF ) | 250 | if ( b == (BUTTON_OFF|BUTTON_REL) ) |
253 | return 0; | 251 | return 0; |
254 | else if ( b & BUTTON_ON ) | 252 | else if ( b == (BUTTON_ON|BUTTON_REL) ) |
255 | return 1; | 253 | return 1; |
256 | 254 | ||
257 | lcd_clear_display(); | 255 | lcd_clear_display(); |
@@ -297,15 +295,13 @@ static int loopit(void) | |||
297 | int timeout=0; | 295 | int timeout=0; |
298 | char buffer[30]; | 296 | char buffer[30]; |
299 | 297 | ||
300 | while(button_get(false) & BUTTON_REL); | ||
301 | |||
302 | lcd_clear_display(); | 298 | lcd_clear_display(); |
303 | while(1) | 299 | while(1) |
304 | { | 300 | { |
305 | b = button_get_w_tmo(HZ/10); | 301 | b = button_get_w_tmo(HZ/10); |
306 | if ( b & BUTTON_OFF ) | 302 | if ( b == (BUTTON_OFF|BUTTON_REL) ) |
307 | return 0; | 303 | return 0; |
308 | if ( b & BUTTON_ON ) | 304 | if ( b == (BUTTON_ON|BUTTON_REL) ) |
309 | return 1; | 305 | return 1; |
310 | else if(b != BUTTON_NONE) | 306 | else if(b != BUTTON_NONE) |
311 | timeout=20; | 307 | timeout=20; |