summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-12 13:34:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-12 13:34:27 +0000
commit8e43ccbec69cb5fc1db2b5e65ffd48e00bd308e5 (patch)
tree1827ad626e8bd7bd691f359045ba978b1a236f25 /apps/debug_menu.c
parentca710622210c6832ca8402472c1023538aff41a8 (diff)
downloadrockbox-8e43ccbec69cb5fc1db2b5e65ffd48e00bd308e5.zip
rockbox-8e43ccbec69cb5fc1db2b5e65ffd48e00bd308e5.tar.gz
rockbox-8e43ccbec69cb5fc1db2b5e65ffd48e00bd308e5.tar.bz2
rockbox-8e43ccbec69cb5fc1db2b5e65ffd48e00bd308e5.tar.xz
Initial suppport for building Rockbox for Neo. The Neo has a different
key layout so we need to check for this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 5f9c1a7..65a641c 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -85,7 +85,9 @@ bool dbg_os(void)
switch(button)
{
+#ifdef BUTTON_OFF
case BUTTON_OFF:
+#endif
case BUTTON_LEFT:
return false;
}
@@ -1194,9 +1196,9 @@ static bool view_runtime(void)
/* Wait for a key to be pushed */
key = button_get_w_tmo(HZ);
switch(key) {
-#ifdef HAVE_PLAYER_KEYPAD
+#if defined(HAVE_PLAYER_KEYPAD) || defined(HAVE_NEO_KEYPAD)
case BUTTON_STOP | BUTTON_REL:
-#else
+#elif HAVE_RECORDER_KEYPAD
case BUTTON_OFF | BUTTON_REL:
#endif
done = true;
@@ -1301,7 +1303,7 @@ static bool dbg_disk_info(void)
/* Wait for a key to be pushed */
key = button_get_w_tmo(HZ*5);
switch(key) {
-#ifdef HAVE_PLAYER_KEYPAD
+#if defined(HAVE_PLAYER_KEYPAD) || defined(HAVE_NEO_KEYPAD)
case BUTTON_STOP | BUTTON_REL:
#else
case BUTTON_OFF | BUTTON_REL: