forked from len0rd/rockbox
Functional AB on iRiver H1x0, and improved button mappings (share the NEXTDIR and PREVDIR buttons on iRiver H[13]x0 targets), patch from IRC:lamed, modified by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8450 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
60e8f4f988
commit
4781f1461f
2 changed files with 22 additions and 5 deletions
|
|
@ -426,7 +426,18 @@ long gui_wps_show(void)
|
|||
case WPS_RC_NEXT_DIR:
|
||||
#endif
|
||||
case WPS_NEXT_DIR:
|
||||
#if defined(AB_REPEAT_ENABLE) && defined(WPS_AB_SHARE_DIR_BUTTONS)
|
||||
if (ab_repeat_mode_enabled())
|
||||
{
|
||||
ab_set_B_marker(wps_state.id3->elapsed);
|
||||
ab_jump_to_A_marker();
|
||||
update_track = true;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
audio_next_dir();
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
#ifdef WPS_PREV_DIR
|
||||
|
|
@ -434,7 +445,14 @@ long gui_wps_show(void)
|
|||
case WPS_RC_PREV_DIR:
|
||||
#endif
|
||||
case WPS_PREV_DIR:
|
||||
#if defined(AB_REPEAT_ENABLE) && defined(WPS_AB_SHARE_DIR_BUTTONS)
|
||||
if (ab_repeat_mode_enabled())
|
||||
ab_set_A_marker(wps_state.id3->elapsed);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
audio_prev_dir();
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -69,9 +69,8 @@
|
|||
#define WPS_RC_QUICK (BUTTON_RC_MODE | BUTTON_REPEAT)
|
||||
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
#define WPS_AB_SET_A_MARKER (BUTTON_REC | BUTTON_LEFT)
|
||||
#define WPS_AB_SET_B_MARKER (BUTTON_REC | BUTTON_RIGHT)
|
||||
#define WPS_AB_RESET_AB_MARKERS (BUTTON_REC | BUTTON_OFF)
|
||||
#define WPS_AB_SHARE_DIR_BUTTONS
|
||||
#define WPS_AB_RESET_AB_MARKERS (BUTTON_ON | BUTTON_SELECT)
|
||||
#endif
|
||||
|
||||
#elif CONFIG_KEYPAD == RECORDER_PAD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue