diff options
Diffstat (limited to 'src/touchmanager.h')
-rw-r--r-- | src/touchmanager.h | 16 |
1 files changed, 15 insertions, 1 deletions
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 <guichan/mouseinput.hpp> @@ -80,8 +81,9 @@ struct TouchItem final typedef std::vector<TouchItem*> 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; |