diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-01 01:13:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-01 01:13:26 +0300 |
commit | 05e6289b28c26df11b38a71e737017d64d22b029 (patch) | |
tree | dd649b8ffe10fab5c5bb777381fb0491cb1c9f72 /src/touchmanager.h | |
parent | 82ace39b426a843382a6a809e7b66487c1412494 (diff) | |
download | plus-05e6289b28c26df11b38a71e737017d64d22b029.tar.gz plus-05e6289b28c26df11b38a71e737017d64d22b029.tar.bz2 plus-05e6289b28c26df11b38a71e737017d64d22b029.tar.xz plus-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.h | 5 |
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; |