summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2007-06-25 20:54:11 +0000
committerMarianne Arnold <pixelma@rockbox.org>2007-06-25 20:54:11 +0000
commit74aabc8381e9faa221b87b7d2280238d30f2e9c5 (patch)
tree735ebccb6c3d8946f2cb2cafcf1e1e786f0fafe2 /apps/gui/gwps-common.c
parent6bba70b0ec269c53e46c2f36156fc802b3c763a6 (diff)
downloadrockbox-74aabc8381e9faa221b87b7d2280238d30f2e9c5.tar.gz
rockbox-74aabc8381e9faa221b87b7d2280238d30f2e9c5.zip
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
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index a66c1aa4b5..fe7e1ed979 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1293,13 +1293,16 @@ static char *get_token_value(struct gui_wps *gwps,
1293 } 1293 }
1294#endif 1294#endif
1295 1295
1296#ifdef HAS_BUTTON_HOLD
1297 case WPS_TOKEN_MAIN_HOLD: 1296 case WPS_TOKEN_MAIN_HOLD:
1297#ifdef HAS_BUTTON_HOLD
1298 if (button_hold()) 1298 if (button_hold())
1299#else
1300 if (is_keys_locked())
1301#endif /*hold switch or softlock*/
1299 return "h"; 1302 return "h";
1300 else 1303 else
1301 return NULL; 1304 return NULL;
1302#endif 1305
1303#ifdef HAS_REMOTE_BUTTON_HOLD 1306#ifdef HAS_REMOTE_BUTTON_HOLD
1304 case WPS_TOKEN_REMOTE_HOLD: 1307 case WPS_TOKEN_REMOTE_HOLD:
1305 if (remote_button_hold()) 1308 if (remote_button_hold())