From 7b5bf01f9fc6204ea94689ec15c41b1f56ab0e47 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Dec 2012 18:07:17 +0300 Subject: On the fly from settings show hide on screen joystick and buttons. --- src/touchmanager.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/touchmanager.h') diff --git a/src/touchmanager.h b/src/touchmanager.h index fb81a0beb..e3d76d910 100644 --- a/src/touchmanager.h +++ b/src/touchmanager.h @@ -23,6 +23,7 @@ #include "resources/image.h" +#include "configlistener.h" #include "keydata.h" #include @@ -80,8 +81,9 @@ struct TouchItem final typedef std::vector TouchItemVector; typedef TouchItemVector::const_iterator TouchItemVectorCIter; +typedef TouchItemVector::iterator TouchItemVectorIter; -class TouchManager final +class TouchManager final : public ConfigListener { public: TouchManager(); @@ -120,6 +122,16 @@ class TouchManager final void resize(int width, int height); + void unload(TouchItem *item); + + void unloadTouchItem(TouchItem **unloadItem); + + void optionChanged(const std::string &value); + + void loadPad(); + + void loadButtons(); + private: TouchItem *mKeyboard; TouchItem *mPad; @@ -129,6 +141,8 @@ class TouchManager final ImageCollection *mVertexes; bool mActions[actionsSize]; bool mRedraw; + bool mShowJoystick; + bool mShowButtons; }; extern TouchManager touchManager; -- cgit v1.2.3-60-g2f50