summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-04-20 01:41:56 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-04-20 01:41:56 +0000
commit0eb5dc649f34ca136d0160bf5d43961a2c3cea05 (patch)
tree5082fcd0d0479979a51891e082e742e2cf769266 /apps/gui/gwps-common.c
parent88b509b7d258c820f2eeda513524acbf76dcaaf5 (diff)
downloadrockbox-0eb5dc649f34ca136d0160bf5d43961a2c3cea05.tar.gz
rockbox-0eb5dc649f34ca136d0160bf5d43961a2c3cea05.zip
beginings of a working touchscreen interface for the WPS. 2 new tags:
%T|x|y|width|height|action| <- setup a region (relative to the current viewport) where if pressed the "action" will be done (currently play/stop/prev/next/menu/browse work, suggestions for others to add and better names welcome) %Tl<timeout> <- used as a conditional to say if the touchscreen was touched in the last <timeout>, use this to enable/disable button viewports or something... same syntax as other timeout tags cabbiev2 for the mr500 has been modified to demonstrate the new tags. press the pause/play button to pause playback. press the rockbox logo to get back to the menu. pretty icons needed to make this more usable :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20753 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 5ab0097b2c..1fef9e02cb 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1292,6 +1292,13 @@ static const char *get_token_value(struct gui_wps *gwps,
1292 token->value.i * TIMEOUT_UNIT)) 1292 token->value.i * TIMEOUT_UNIT))
1293 return "v"; 1293 return "v";
1294 return NULL; 1294 return NULL;
1295 case WPS_TOKEN_LASTTOUCH:
1296#ifdef HAVE_TOUCHSCREEN
1297 if (TIME_BEFORE(current_tick, token->value.i * TIMEOUT_UNIT +
1298 touchscreen_last_touch()))
1299 return "t";
1300#endif
1301 return NULL;
1295 1302
1296 case WPS_TOKEN_SETTING: 1303 case WPS_TOKEN_SETTING:
1297 { 1304 {