summaryrefslogtreecommitdiff
path: root/src/touchmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-09 16:27:05 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-09 16:27:05 +0300
commit1324fd68e1a049fea14f38c0aece770778d1b225 (patch)
tree22ac54b4b06b4bb5d894bbde50410e361ebda81a /src/touchmanager.cpp
parent50ca2750f73025be4e73ed1c6271c4433f081062 (diff)
downloadplus-1324fd68e1a049fea14f38c0aece770778d1b225.tar.gz
plus-1324fd68e1a049fea14f38c0aece770778d1b225.tar.bz2
plus-1324fd68e1a049fea14f38c0aece770778d1b225.tar.xz
plus-1324fd68e1a049fea14f38c0aece770778d1b225.zip
Add initial setup page for touch interfaces.
Diffstat (limited to 'src/touchmanager.cpp')
-rw-r--r--src/touchmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp
index 96a083872..5b04b2023 100644
--- a/src/touchmanager.cpp
+++ b/src/touchmanager.cpp
@@ -63,6 +63,9 @@ void TouchManager::init()
{
loadTouchItem(&mPad, "dpad.xml", 100, 100, LEFT,
&padEvents, &padClick, &padUp, &padOut);
+ }
+ if (config.getBoolValue("showScreenButtons"))
+ {
loadTouchItem(&mAttack, "dpad_attack.xml", 60, 60, RIGHT,
nullptr, &attackClick, nullptr, nullptr);
loadTouchItem(&mCancel, "dpad_cancel.xml", 60, 60, RIGHT,