diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-08-16 13:25:45 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-08-16 13:25:45 +0000 |
commit | 5e5bfabf6731758302a8ec15dc4f93109bf91d84 (patch) | |
tree | c539ebce3ac1aef9081201dcc52956704458216e /apps/gui/gwps.c | |
parent | 75765df6df134c718189125073806bfb4a1512b1 (diff) |
* fixed the pitch screen key mappings for all targets, targets require a
mapping to access the screen from the wps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10611 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 2b80172ad4..12e120f7d4 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -19,6 +19,7 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> +#include "config.h" #include "system.h" #include "file.h" @@ -373,10 +374,11 @@ long gui_wps_show(void) audio_next(); break; /* next / prev directories */ - case ACTION_WPS_NEXTDIR: + /* and set A-B markers if in a-b mode */ + case ACTION_WPS_ABSETB_NEXTDIR: if (global_settings.party_mode) break; -#if defined(AB_REPEAT_ENABLE) && defined(WPS_AB_SHARE_DIR_BUTTONS) +#if defined(AB_REPEAT_ENABLE) if (ab_repeat_mode_enabled()) { ab_set_B_marker(wps_state.id3->elapsed); @@ -389,10 +391,10 @@ long gui_wps_show(void) audio_next_dir(); } break; - case ACTION_WPS_PREVDIR: + case ACTION_WPS_ABSETA_PREVDIR: if (global_settings.party_mode) break; -#if defined(AB_REPEAT_ENABLE) && defined(WPS_AB_SHARE_DIR_BUTTONS) +#if defined(AB_REPEAT_ENABLE) if (ab_repeat_mode_enabled()) ab_set_A_marker(wps_state.id3->elapsed); else @@ -465,10 +467,10 @@ long gui_wps_show(void) { gui_wps_set_margin(&gui_wps[i]); } -#endif /* BUTTON_F3 */ +#endif restore = true; break; -#endif +#endif /* BUTTON_F3 */ /* pitch screen */ #ifdef HAVE_PITCHSCREEN @@ -476,6 +478,7 @@ long gui_wps_show(void) #ifdef HAVE_LCD_COLOR show_main_backdrop(); #endif + action_signalscreenchange(); if (1 == pitch_screen()) return SYS_USB_CONNECTED; #ifdef HAVE_LCD_COLOR @@ -505,22 +508,6 @@ long gui_wps_show(void) } ab_set_A_marker(wps_state.id3->elapsed); break; - - - /* set A marker for A-B repeat */ - case ACTION_WPSAB_SETA: - if (ab_repeat_mode_enabled()) - ab_set_A_marker(wps_state.id3->elapsed); - break; - /* set B marker for A-B repeat and jump to A */ - case ACTION_WPSAB_SETB: - if (ab_repeat_mode_enabled()) - { - ab_set_B_marker(wps_state.id3->elapsed); - ab_jump_to_A_marker(); - update_track = true; - } - break; /* reset A&B markers */ case ACTION_WPSAB_RESET: if (ab_repeat_mode_enabled()) |