diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-27 07:20:42 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-27 07:20:42 +0000 |
| commit | acf73af2e846c4981aa69ea81b6aae4adc10ecb0 (patch) | |
| tree | c421199cffce15a5ad59181fc968d157d2db9fa4 /apps | |
| parent | 5f23fe0277f75690554018561bf3c16d7fb211f2 (diff) | |
| download | rockbox-acf73af2e846c4981aa69ea81b6aae4adc10ecb0.zip rockbox-acf73af2e846c4981aa69ea81b6aae4adc10ecb0.tar.gz rockbox-acf73af2e846c4981aa69ea81b6aae4adc10ecb0.tar.bz2 rockbox-acf73af2e846c4981aa69ea81b6aae4adc10ecb0.tar.xz | |
Go back to the old button code for the debug ports screen so its usable
again. (FS#6087, the first comment)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11847 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/debug_menu.c | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index a63eb7d..9a50970 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -930,6 +930,40 @@ static bool dbg_spdif(void) #ifndef SIMULATOR #ifdef HAVE_LCD_BITMAP + /* button definitions */ +#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ + (CONFIG_KEYPAD == IRIVER_H300_PAD) +# define DEBUG_CANCEL BUTTON_OFF + +#elif CONFIG_KEYPAD == RECORDER_PAD +# define DEBUG_CANCEL BUTTON_OFF + +#elif CONFIG_KEYPAD == ONDIO_PAD +# define DEBUG_CANCEL BUTTON_MENU + +#elif CONFIG_KEYPAD == GMINI100_PAD +# define DEBUG_CANCEL BUTTON_OFF + +#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || \ + (CONFIG_KEYPAD == IPOD_4G_PAD) +# define DEBUG_CANCEL BUTTON_MENU + +#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD +# define DEBUG_CANCEL BUTTON_PLAY + +#elif CONFIG_KEYPAD == IAUDIO_X5_PAD +# define DEBUG_CANCEL BUTTON_REC + +#elif CONFIG_KEYPAD == GIGABEAT_PAD +# define DEBUG_CANCEL BUTTON_A + +#elif CONFIG_KEYPAD == IRIVER_H10_PAD +# define DEBUG_CANCEL BUTTON_REW + +#elif CONFIG_KEYPAD == SANSA_E200_PAD +# define DEBUG_CANCEL BUTTON_LEFT +#endif /* key definitios */ + /* Test code!!! */ bool dbg_ports(void) { @@ -975,7 +1009,7 @@ bool dbg_ports(void) lcd_puts(0, 7, buf); #endif lcd_update(); - if (action_userabort(HZ/10)) + if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) return false; } #elif defined(CPU_COLDFIRE) @@ -1063,7 +1097,7 @@ bool dbg_ports(void) #endif lcd_update(); - if (action_userabort(HZ/10)) + if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) return false; } @@ -1125,7 +1159,7 @@ bool dbg_ports(void) lcd_puts(0, line++, buf); #endif lcd_update(); - if (action_userabort(HZ/10)) + if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) return false; } @@ -1153,7 +1187,7 @@ bool dbg_ports(void) lcd_puts(0, line++, buf); lcd_update(); - if (action_userabort(HZ/10)) + if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) return false; } #endif /* CPU */ |