diff options
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; |