summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-07-28 11:26:01 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-07-28 11:26:01 +0000
commitbb618dbd84389a8625244e97c5f61addd7870810 (patch)
treebffbb1d02597b1a732429c0fbbdcf1173dc60d87 /apps/gui/skin_engine/skin_tokens.c
parentb9f32302736031725a3885db2612b14af69c4dd5 (diff)
downloadrockbox-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/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c4
1 files changed, 4 insertions, 0 deletions
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,
1378#endif 1378#endif
1379 1379
1380 case SKIN_TOKEN_MAIN_HOLD: 1380 case SKIN_TOKEN_MAIN_HOLD:
1381#ifdef HAVE_TOUCHSCREEN
1382 if (data->touchscreen_locked)
1383 return "t";
1384#endif
1381#ifdef HAS_BUTTON_HOLD 1385#ifdef HAS_BUTTON_HOLD
1382 if (button_hold()) 1386 if (button_hold())
1383#else 1387#else