summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-03-05 00:04:31 +0000
committerJens Arnold <amiconn@rockbox.org>2005-03-05 00:04:31 +0000
commita9ee48ac54932be88e1e28b4b53bf9d45b6f9296 (patch)
tree5250e62ff65e458e16f65c29517b4613fdfa9648
parentebd63b52cd22a173106085b79404688d267a801a (diff)
LCD mode switching added for recorders (uses ON button).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6137 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 64c3385169..1b0bed8b81 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -83,8 +83,11 @@ void ev_poll(void)
oldbuttonstate = newbuttonstate;
#if CONFIG_KEYPAD == IRIVER_H100_PAD
if (rb->button_hold()&~holdbutton)
- fb.mode=(fb.mode+1)%4;
+ fb.mode=(fb.mode+1)%4;
holdbutton=rb->button_hold();
+#elif CONFIG_KEYPAD == RECORDER_PAD
+ if (pressed & BUTTON_ON)
+ fb.mode=(fb.mode+1)%4;
#endif
if(released) {
ev.type = EV_RELEASE;