From bb618dbd84389a8625244e97c5f61addd7870810 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 28 Jul 2011 11:26:01 +0000 Subject: 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 --- apps/gui/skin_engine/wps_internals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/gui/skin_engine/wps_internals.h') 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 { short int width; /* width */ short int height; /* height */ bool reverse_bar; /* if true 0% is the left or top */ + bool allow_while_locked; enum { PRESS, /* quick press only */ LONG_PRESS, /* Long press without repeat */ @@ -308,6 +309,7 @@ struct wps_data #ifdef HAVE_TOUCHSCREEN struct skin_token_list *touchregions; + bool touchscreen_locked; #endif #ifdef HAVE_ALBUMART struct skin_albumart *albumart; -- cgit v1.2.3