summaryrefslogtreecommitdiff
path: root/src/touchmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-01 01:13:26 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-01 01:13:26 +0300
commit05e6289b28c26df11b38a71e737017d64d22b029 (patch)
treedd649b8ffe10fab5c5bb777381fb0491cb1c9f72 /src/touchmanager.h
parent82ace39b426a843382a6a809e7b66487c1412494 (diff)
downloadmanaplus-05e6289b28c26df11b38a71e737017d64d22b029.tar.gz
manaplus-05e6289b28c26df11b38a71e737017d64d22b029.tar.bz2
manaplus-05e6289b28c26df11b38a71e737017d64d22b029.tar.xz
manaplus-05e6289b28c26df11b38a71e737017d64d22b029.zip
Allow select differnt modes for on screen buttons.
Now supported 2x1 and 2x2 modes.
Diffstat (limited to 'src/touchmanager.h')
-rw-r--r--src/touchmanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/touchmanager.h b/src/touchmanager.h
index ea8a3a72f..ce972e41b 100644
--- a/src/touchmanager.h
+++ b/src/touchmanager.h
@@ -43,6 +43,7 @@ class Skin;
typedef void (*TouchFuncPtr) (const MouseInput &mouseInput);
const int actionsSize = Input::KEY_TOTAL;
+const int buttonsCount = 4;
struct TouchItem final
{
@@ -162,8 +163,7 @@ class TouchManager final : public ConfigListener
private:
TouchItem *mKeyboard;
TouchItem *mPad;
- TouchItem *mAttack;
- TouchItem *mCancel;
+ TouchItem *mButtons[buttonsCount];
TouchItemVector mObjects;
ImageCollection *mVertexes;
bool mActions[actionsSize];
@@ -173,6 +173,7 @@ class TouchManager final : public ConfigListener
bool mShowKeyboard;
int mButtonsSize;
int mJoystickSize;
+ int mButtonsFormat;
bool mShow;
bool mInGame;
bool mTempHideButtons;