summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-09 17:47:32 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-09 17:47:32 +0000
commit87ac614ccd18f8481aae7fa7baf855b5b01ee48b (patch)
tree31366265cabd301cbf336d8ea94c3c6ca0fa6146 /apps/plugins/rockboy/sys_rockbox.c
parent61e798ff27edc6a491f76c567ec20f8adab38217 (diff)
downloadrockbox-87ac614ccd18f8481aae7fa7baf855b5b01ee48b.tar.gz
rockbox-87ac614ccd18f8481aae7fa7baf855b5b01ee48b.tar.bz2
rockbox-87ac614ccd18f8481aae7fa7baf855b5b01ee48b.zip
Enable rockboy for M5.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13084 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 40f68681d8..783accd01b 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -76,7 +76,7 @@ void ev_poll(void)
released = ~newbuttonstate & oldbuttonstate;
pressed = newbuttonstate & ~oldbuttonstate;
oldbuttonstate = newbuttonstate;
-#if CONFIG_KEYPAD == IRIVER_H100_PAD
+#if (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 2)
if (rb->button_hold()&~holdbutton)
fb.mode=(fb.mode+1)%4;
holdbutton=rb->button_hold();
@@ -161,8 +161,7 @@ void ev_poll(void)
#else
if(pressed & options.MENU) {
#endif
-#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
- defined(HAVE_LCD_COLOR)
+#if (CONFIG_KEYPAD != RECORDER_PAD)
#ifdef HAVE_WHEEL_POSITION
rb->wheel_send_events(true);
#endif