diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-07-28 11:26:01 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-07-28 11:26:01 +0000 |
commit | bb618dbd84389a8625244e97c5f61addd7870810 (patch) | |
tree | bffbb1d02597b1a732429c0fbbdcf1173dc60d87 /apps/gui/skin_engine/wps_internals.h | |
parent | b9f32302736031725a3885db2612b14af69c4dd5 (diff) | |
download | rockbox-bb618dbd84389a8625244e97c5f61addd7870810.tar.gz rockbox-bb618dbd84389a8625244e97c5f61addd7870810.zip |
skin engine softlock support for touchscreens:
Modify the %Tl() tag to add a new region 'lock' which will lock/unlock the wps/sbs from touches (hardware buttons still work)
You can also specify a region to work when locked by prepending ^ to the action name (this is probably about to change though)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30218 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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index 4714609c1e..6de98455a7 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h | |||
@@ -189,6 +189,7 @@ struct touchregion { | |||
189 | short int width; /* width */ | 189 | short int width; /* width */ |
190 | short int height; /* height */ | 190 | short int height; /* height */ |
191 | bool reverse_bar; /* if true 0% is the left or top */ | 191 | bool reverse_bar; /* if true 0% is the left or top */ |
192 | bool allow_while_locked; | ||
192 | enum { | 193 | enum { |
193 | PRESS, /* quick press only */ | 194 | PRESS, /* quick press only */ |
194 | LONG_PRESS, /* Long press without repeat */ | 195 | LONG_PRESS, /* Long press without repeat */ |
@@ -308,6 +309,7 @@ struct wps_data | |||
308 | 309 | ||
309 | #ifdef HAVE_TOUCHSCREEN | 310 | #ifdef HAVE_TOUCHSCREEN |
310 | struct skin_token_list *touchregions; | 311 | struct skin_token_list *touchregions; |
312 | bool touchscreen_locked; | ||
311 | #endif | 313 | #endif |
312 | #ifdef HAVE_ALBUMART | 314 | #ifdef HAVE_ALBUMART |
313 | struct skin_albumart *albumart; | 315 | struct skin_albumart *albumart; |