From 351b7cf1ff682026485b0e7a8f7623fe356cdf84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Dec 2012 19:51:15 +0300 Subject: Add resize options for on screen joystick and buttons. --- src/touchmanager.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/touchmanager.h') 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; -- cgit v1.2.3-70-g09d2