summaryrefslogtreecommitdiff
path: root/src/touchmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/touchmanager.h')
-rw-r--r--src/touchmanager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/touchmanager.h b/src/touchmanager.h
index e3d76d910..e93618fc8 100644
--- a/src/touchmanager.h
+++ b/src/touchmanager.h
@@ -102,7 +102,7 @@ class TouchManager final : public ConfigListener
void init();
void loadTouchItem(TouchItem **item, std::string name,
- int type, int width, int height,
+ int type, int x, int y, int width, int height,
TouchFuncPtr fAll, TouchFuncPtr fPressed,
TouchFuncPtr fReleased, TouchFuncPtr fOut);
@@ -132,6 +132,9 @@ class TouchManager final : public ConfigListener
void loadButtons();
+ int getPadSize()
+ { return (mJoystickSize + 2) * 50; }
+
private:
TouchItem *mKeyboard;
TouchItem *mPad;
@@ -143,6 +146,8 @@ class TouchManager final : public ConfigListener
bool mRedraw;
bool mShowJoystick;
bool mShowButtons;
+ int mButtonsSize;
+ int mJoystickSize;
};
extern TouchManager touchManager;