diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-08-15 12:27:07 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-08-15 12:27:07 +0000 |
commit | 224c0a13ebb5828b9bc06a9c1c23ae17f0ac19f9 (patch) | |
tree | bae2154b272f786983cf8e6de28d33f98f327560 /apps/logfdisp.c | |
parent | c0f8b187706364f5e4bda2ac26750d14454c901d (diff) | |
download | rockbox-224c0a13ebb5828b9bc06a9c1c23ae17f0ac19f9.tar.gz rockbox-224c0a13ebb5828b9bc06a9c1c23ae17f0ac19f9.zip |
Finally, the new button action system is here, thanks to Jonathan Gordon. Some button mappings have changed and other things may break. Comments should go to the forum, http://forums.rockbox.org/index.php?topic=5829.0 or the mailing list.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10582 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/logfdisp.c')
-rw-r--r-- | apps/logfdisp.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/apps/logfdisp.c b/apps/logfdisp.c index 9d62383da4..734a6aec63 100644 --- a/apps/logfdisp.c +++ b/apps/logfdisp.c | |||
@@ -24,20 +24,12 @@ | |||
24 | #include <timefuncs.h> | 24 | #include <timefuncs.h> |
25 | #include <string.h> | 25 | #include <string.h> |
26 | #include <kernel.h> | 26 | #include <kernel.h> |
27 | #include <button.h> | 27 | #include <action.h> |
28 | 28 | ||
29 | #include <lcd.h> | 29 | #include <lcd.h> |
30 | #include "menu.h" | 30 | #include "menu.h" |
31 | #include "logf.h" | 31 | #include "logf.h" |
32 | 32 | ||
33 | #if (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) | ||
34 | #define LOGF_BUTTON_QUIT BUTTON_MENU | ||
35 | #elif CONFIG_KEYPAD == IAUDIO_X5_PAD | ||
36 | #define LOGF_BUTTON_QUIT BUTTON_POWER | ||
37 | #else | ||
38 | #define LOGF_BUTTON_QUIT BUTTON_OFF | ||
39 | #endif | ||
40 | |||
41 | #ifdef HAVE_LCD_BITMAP | 33 | #ifdef HAVE_LCD_BITMAP |
42 | bool logfdisplay(void) | 34 | bool logfdisplay(void) |
43 | 35 | ||
@@ -46,7 +38,6 @@ bool logfdisplay(void) | |||
46 | int lines; | 38 | int lines; |
47 | int columns; | 39 | int columns; |
48 | int i; | 40 | int i; |
49 | int button; | ||
50 | 41 | ||
51 | bool lcd = false; /* fixed atm */ | 42 | bool lcd = false; /* fixed atm */ |
52 | int index; | 43 | int index; |
@@ -93,8 +84,7 @@ bool logfdisplay(void) | |||
93 | lcd_puts(0, i, buffer); | 84 | lcd_puts(0, i, buffer); |
94 | } | 85 | } |
95 | lcd_update(); | 86 | lcd_update(); |
96 | button = button_get_w_tmo(HZ/2); | 87 | } while(!action_userabort(HZ)); |
97 | } while(button != LOGF_BUTTON_QUIT); | ||
98 | 88 | ||
99 | return false; | 89 | return false; |
100 | } | 90 | } |