diff options
| author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-04-19 11:34:22 +0000 |
|---|---|---|
| committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-04-19 11:34:22 +0000 |
| commit | ed0c8764c44ca5d651b08fdd19bb2597f3a8300b (patch) | |
| tree | 26d356a48691cc00f53214717f52e5568cc20446 /apps/status.c | |
| parent | e5e08c7ee56ab3bb870bce452fe69cda2ae6749a (diff) | |
| download | rockbox-ed0c8764c44ca5d651b08fdd19bb2597f3a8300b.zip rockbox-ed0c8764c44ca5d651b08fdd19bb2597f3a8300b.tar.gz rockbox-ed0c8764c44ca5d651b08fdd19bb2597f3a8300b.tar.bz2 rockbox-ed0c8764c44ca5d651b08fdd19bb2597f3a8300b.tar.xz | |
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
Diffstat (limited to 'apps/status.c')
| -rw-r--r-- | apps/status.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 |