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/skin_tokens.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/gui/skin_engine/skin_tokens.c') diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 3c6a817ea8..ec6f606938 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -1378,6 +1378,10 @@ const char *get_token_value(struct gui_wps *gwps, #endif case SKIN_TOKEN_MAIN_HOLD: +#ifdef HAVE_TOUCHSCREEN + if (data->touchscreen_locked) + return "t"; +#endif #ifdef HAS_BUTTON_HOLD if (button_hold()) #else -- cgit v1.2.3