From ed0c8764c44ca5d651b08fdd19bb2597f3a8300b Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 19 Apr 2005 11:34:22 +0000 Subject: iRiver: added support for hold-button on main unit and remote control git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6320 a1c6a512-1295-4272-9138-f99709370657 --- apps/status.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/status.c') diff --git a/apps/status.c b/apps/status.c index 62eb034..d7d3a21 100644 --- a/apps/status.c +++ b/apps/status.c @@ -37,6 +37,9 @@ #include "powermgmt.h" #include "led.h" #include "sound.h" +#if CONFIG_KEYPAD == IRIVER_H100_PAD +#include "button.h" +#endif static enum playmode ff_mode; @@ -157,7 +160,11 @@ void status_draw(bool force_redraw) info.hour = tm->tm_hour; info.minute = tm->tm_min; info.shuffle = global_settings.playlist_shuffle; +#if CONFIG_KEYPAD == IRIVER_H100_PAD + info.keylock = button_hold(); +#else info.keylock = keys_locked; +#endif info.repeat = global_settings.repeat_mode; info.playmode = current_playmode(); #ifndef HAVE_LED -- cgit v1.1