summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-01 03:22:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-01 03:22:59 +0300
commit950c3109bcd8a69d77d22c316cfc6ab34abf5f22 (patch)
treeaa2cd2cf37f34a3b80b063d4db2785453e832785 /src/input
parent8c53c9e09c2a5b3f5e320b87f62d61bbd7d16043 (diff)
downloadplus-950c3109bcd8a69d77d22c316cfc6ab34abf5f22.tar.gz
plus-950c3109bcd8a69d77d22c316cfc6ab34abf5f22.tar.bz2
plus-950c3109bcd8a69d77d22c316cfc6ab34abf5f22.tar.xz
plus-950c3109bcd8a69d77d22c316cfc6ab34abf5f22.zip
Extend windows unit tests with drawing.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/touch/touchmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/touch/touchmanager.cpp b/src/input/touch/touchmanager.cpp
index 29e2b3cf5..be6dd072d 100644
--- a/src/input/touch/touchmanager.cpp
+++ b/src/input/touch/touchmanager.cpp
@@ -53,7 +53,7 @@ TouchManager::TouchManager() :
mKeyboard(nullptr),
mPad(nullptr),
mObjects(),
- mVertexes(new ImageCollection),
+ mVertexes(nullptr),
mRedraw(true),
mShowJoystick(false),
mShowButtons(false),
@@ -86,6 +86,8 @@ void TouchManager::shutdown() restrict2
void TouchManager::init() restrict2
{
+ mVertexes = new ImageCollection;
+
config.addListener("showScreenJoystick", this);
config.addListener("showScreenButtons", this);
config.addListener("showScreenKeyboard", this);