From 156b0bc6146eb69a42189907593f4aa4e45775db Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 28 Feb 2011 11:19:59 +0000 Subject: Add the option of linking the %Tl (last touch) tag to a specific touchregion. Both tags now accept an optional label param as the first param. %Tl([label,][timeout]) %T([label,] x, y, width, height, action) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29459 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_touchsupport.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/gui/skin_engine/skin_touchsupport.c') diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index 850c1c0647..e5a39cddc5 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c @@ -89,7 +89,10 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset, *retregion = r; } if (pressed) + { r->armed = true; + r->last_press = current_tick; + } break; default: if (edge_offset) -- cgit v1.2.3