forked from len0rd/rockbox
Button mappings for iPods, using mp3_is_playing() for harware platforms, file format converted to unix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
00598459bb
commit
facf94eb8b
1 changed files with 13 additions and 2 deletions
|
|
@ -48,6 +48,12 @@ PLUGIN_HEADER
|
|||
|
||||
#define BATTERY_OFF BUTTON_OFF
|
||||
#define BATTERY_RC_OFF BUTTON_RC_STOP
|
||||
|
||||
#elif CONFIG_KEYPAD == IPOD_4G_PAD
|
||||
|
||||
#define BATTERY_ON BUTTON_PLAY
|
||||
#define BATTERY_OFF BUTTON_MENU
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
@ -159,8 +165,13 @@ void thread(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
if(!rb->pcm_is_playing() &&
|
||||
(*rb->current_tick - tick) > DISK_SPINDOWN_TIMEOUT * HZ)
|
||||
if(
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
!rb->pcm_is_playing()
|
||||
#else
|
||||
!rb->mp3_is_playing()
|
||||
#endif
|
||||
&& (*rb->current_tick - tick) > DISK_SPINDOWN_TIMEOUT * HZ)
|
||||
timeflag = true;
|
||||
|
||||
if(last_voltage != rb->battery_voltage())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue