1
0
Fork 0
forked from len0rd/rockbox

Make the '%mh' wps tag (to indicate keylock status) available on the Archos targets as well.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13716 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marianne Arnold 2007-06-25 20:54:11 +00:00
parent 6bba70b0ec
commit 74aabc8381
3 changed files with 7 additions and 6 deletions

View file

@ -1293,13 +1293,16 @@ static char *get_token_value(struct gui_wps *gwps,
}
#endif
#ifdef HAS_BUTTON_HOLD
case WPS_TOKEN_MAIN_HOLD:
#ifdef HAS_BUTTON_HOLD
if (button_hold())
#else
if (is_keys_locked())
#endif /*hold switch or softlock*/
return "h";
else
return NULL;
#endif
#ifdef HAS_REMOTE_BUTTON_HOLD
case WPS_TOKEN_REMOTE_HOLD:
if (remote_button_hold())

View file

@ -203,9 +203,8 @@ enum wps_token_type {
WPS_TOKEN_REPEAT_MODE,
WPS_TOKEN_PLAYBACK_STATUS,
#ifdef HAS_BUTTON_HOLD
WPS_TOKEN_MAIN_HOLD,
#endif
#ifdef HAS_REMOTE_BUTTON_HOLD
WPS_TOKEN_REMOTE_HOLD,
#endif

View file

@ -227,9 +227,8 @@ static const struct wps_tag all_tags[] = {
{ WPS_TOKEN_VLED_HDD, "lh", WPS_REFRESH_DYNAMIC, NULL },
#endif
#ifdef HAS_BUTTON_HOLD
{ WPS_TOKEN_MAIN_HOLD, "mh", WPS_REFRESH_DYNAMIC, NULL },
#endif
#ifdef HAS_REMOTE_BUTTON_HOLD
{ WPS_TOKEN_REMOTE_HOLD, "mr", WPS_REFRESH_DYNAMIC, NULL },
#endif