Index: apps/gui/skin_engine/skin_parser.c
===================================================================
--- apps/gui/skin_engine/skin_parser.c	(revision 26850)
+++ apps/gui/skin_engine/skin_parser.c	(working copy)
@@ -421,6 +421,7 @@
     { WPS_TOKEN_LANG_IS_RTL ,             "Sr",  WPS_REFRESH_STATIC, NULL },
 
     { WPS_TOKEN_LASTTOUCH,                "Tl",  WPS_REFRESH_DYNAMIC, parse_timeout },
+    { WPS_TOKEN_TOUCHMODE,                "Tm",  WPS_REFRESH_STATIC,  NULL },
     { WPS_TOKEN_CURRENT_SCREEN,           "cs",  WPS_REFRESH_DYNAMIC, NULL },
     { WPS_NO_TOKEN,                       "T",   0,    parse_touchregion      },
 
Index: apps/gui/skin_engine/skin_tokens.c
===================================================================
--- apps/gui/skin_engine/skin_tokens.c	(revision 26850)
+++ apps/gui/skin_engine/skin_tokens.c	(working copy)
@@ -1047,6 +1047,16 @@
 #endif
             return NULL;
 
+        case WPS_TOKEN_TOUCHMODE:
+#ifdef HAVE_TOUCHSCREEN
+            if (intval)
+                *intval = touchscreen_get_mode() + 1;
+            snprintf(buf, buf_size, "%s", touchscreen_get_mode()?"grid":"stylus");
+            return buf;
+#else
+            return NULL;
+#endif
+
         case WPS_TOKEN_SETTING:
         {
             const struct settings_list *s = settings+token->value.i;
Index: apps/gui/skin_engine/skin_tokens.h
===================================================================
--- apps/gui/skin_engine/skin_tokens.h	(revision 26850)
+++ apps/gui/skin_engine/skin_tokens.h	(working copy)
@@ -200,6 +200,7 @@
     WPS_TOKEN_LIST_TITLE_ICON,
     WPS_TOKEN_BUTTON_VOLUME,
     WPS_TOKEN_LASTTOUCH,
+    WPS_TOKEN_TOUCHMODE,
 #if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD)
     /* Virtual LED */
     WPS_TOKEN_VLED_HDD,
Index: wps/classic_statusbar/touchmode.bmp
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: wps/classic_statusbar/touchmode.bmp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: wps/classic_statusbar.sbs
===================================================================
--- wps/classic_statusbar.sbs	(revision 26850)
+++ wps/classic_statusbar.sbs	(working copy)
@@ -31,6 +31,7 @@
 %xl(S,status.bmp,0,0,15)
 %xl(D,access_disk.bmp,0,0)
 %xl(y,batter-y.bmp,0,0)
+%xl(T,touchmode.bmp,0,0,2)
 
 %xl(m,rec_mpegbitrates.bmp,1,0,18)
 %xl(f,rec_frequencies.bmp,0,0,12)
@@ -95,6 +96,9 @@
 %?Rp<%?Rf<%xd(fa)|%xd(fb)|%xd(fc)|%xd(fd)|%xd(fe)|%xd(ff)|%xd(fg)|%xd(fh)|%xd(fi)|%xd(fj)|%xd(fk)|%xd(fl)>>
 %?Rm<%xd(ca)|%xd(cb)>
 
+# Touchscreen mode indication
+%V(-72,0,8,8,0)
+%?Tm<%xd(Ta)|%xd(Tb)|>
 # Clock on RTC able targets, and disk access
 %V(-43,0,31,8,0) # align on the right with room for 5 SYSFONT digits
 %?cc<%?ca<%?St(time format)<%cH|%cI>:%cM|--:-->|>
