summaryrefslogtreecommitdiff
path: root/src/touchmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-09 19:51:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-09 21:03:32 +0300
commit351b7cf1ff682026485b0e7a8f7623fe356cdf84 (patch)
tree69e4863afbcf3bddf19affecb53ad0205e3f45a3 /src/touchmanager.h
parentb43ed947efd36471a0608d103faed95e61f7b124 (diff)
downloadplus-351b7cf1ff682026485b0e7a8f7623fe356cdf84.tar.gz
plus-351b7cf1ff682026485b0e7a8f7623fe356cdf84.tar.bz2
plus-351b7cf1ff682026485b0e7a8f7623fe356cdf84.tar.xz
plus-351b7cf1ff682026485b0e7a8f7623fe356cdf84.zip
Add resize options for on screen joystick and buttons.
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;