summaryrefslogtreecommitdiff
path: root/glcdskin/skin.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcdskin/skin.c')
-rw-r--r--glcdskin/skin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/glcdskin/skin.c b/glcdskin/skin.c
index a7facdd..c4e8e4b 100644
--- a/glcdskin/skin.c
+++ b/glcdskin/skin.c
@@ -79,4 +79,16 @@ cSkinVariable * cSkin::GetVariable(const std::string & Id)
}
+bool cSkin::ParseEnable(const std::string & Text)
+{
+ cDriver * driver = config.GetDriver();
+
+ if (!driver)
+ return false;
+
+ driver->SetFeature(Text, 1);
+ return true; // always return true else loading the skin would fail if touchscreen is not available
+}
+
+
} // end of namespace