From 05e6289b28c26df11b38a71e737017d64d22b029 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 1 Jan 2013 01:13:26 +0300 Subject: Allow select differnt modes for on screen buttons. Now supported 2x1 and 2x2 modes. --- src/touchmanager.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/touchmanager.h') 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; -- cgit v1.2.3-60-g2f50