diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-02-28 11:19:59 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-02-28 11:19:59 +0000 |
commit | 156b0bc6146eb69a42189907593f4aa4e45775db (patch) | |
tree | 5280bb9f9116cd0b5b547bf83d6334b6415d7c14 /apps/gui/skin_engine/wps_internals.h | |
parent | a7fb7366b58e30a876d5754086c8b8f8c99e0654 (diff) | |
download | rockbox-156b0bc6146eb69a42189907593f4aa4e45775db.tar.gz rockbox-156b0bc6146eb69a42189907593f4aa4e45775db.zip |
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
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r-- | apps/gui/skin_engine/wps_internals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index 83e94b6f8d..28697c8b69 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -182,6 +182,7 @@ struct viewport_colour { }; #ifdef HAVE_TOUCHSCREEN struct touchregion { + char* label; /* label to identify this region */ struct skin_viewport* wvp;/* The viewport this region is in */ short int x; /* x-pos */ short int y; /* y-pos */ @@ -201,6 +202,12 @@ struct touchregion { void* data; int value; }; + long last_press; /* last tick this was pressed */ +}; + +struct touchregion_lastpress { + struct touchregion *region; + long timeout; }; #endif |