summaryrefslogtreecommitdiff
path: root/src/touchmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-18 22:42:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-18 22:43:53 +0300
commit4b2cbbeae4acc6b2c94f5455eb0c5d1134b32588 (patch)
treee29d33dd9b293093258b3e4238a00a7169c48e32 /src/touchmanager.h
parent26bf983ed44960508f318e804e8f2fa515f0df2c (diff)
downloadplus-4b2cbbeae4acc6b2c94f5455eb0c5d1134b32588.tar.gz
plus-4b2cbbeae4acc6b2c94f5455eb0c5d1134b32588.tar.bz2
plus-4b2cbbeae4acc6b2c94f5455eb0c5d1134b32588.tar.xz
plus-4b2cbbeae4acc6b2c94f5455eb0c5d1134b32588.zip
Add support for show images in on screen buttons center.
New theme files: dbutton_image.xml dpad_image.xml
Diffstat (limited to 'src/touchmanager.h')
-rw-r--r--src/touchmanager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/touchmanager.h b/src/touchmanager.h
index cad10f3c6..c9f018b7f 100644
--- a/src/touchmanager.h
+++ b/src/touchmanager.h
@@ -47,12 +47,13 @@ const int actionsSize = Input::KEY_TOTAL;
struct TouchItem final
{
TouchItem(const gcn::Rectangle rect0, int type0, ImageRect *const images0,
- int x0, int y0, int width0, int height0,
+ Image *const icon0, int x0, int y0, int width0, int height0,
TouchFuncPtr ptrAll, TouchFuncPtr ptrPressed,
TouchFuncPtr ptrReleased, TouchFuncPtr ptrOut) :
rect(rect0),
type(type0),
images(images0),
+ icon(icon0),
x(x0),
y(y0),
width(width0),
@@ -69,6 +70,7 @@ struct TouchItem final
gcn::Rectangle rect;
int type;
ImageRect *images;
+ Image *icon;
int x;
int y;
int width;
@@ -102,6 +104,7 @@ class TouchManager final : public ConfigListener
void init();
void loadTouchItem(TouchItem **item, std::string name,
+ std::string imageName,
int type, int x, int y, int width, int height,
TouchFuncPtr fAll, TouchFuncPtr fPressed,
TouchFuncPtr fReleased, TouchFuncPtr fOut);