From a9ee48ac54932be88e1e28b4b53bf9d45b6f9296 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 5 Mar 2005 00:04:31 +0000 Subject: LCD mode switching added for recorders (uses ON button). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6137 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/rockboy/sys_rockbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3