summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
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);