1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Christian Gmeiner 2005-04-19 11:34:22 +00:00
parent e5e08c7ee5
commit ed0c8764c4
4 changed files with 92 additions and 56 deletions

View file

@ -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