summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 23:02:47 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 23:02:47 +0000
commit004963a615516d3534a68da90d44443dc765d9d4 (patch)
tree4a37376ad5858a8fe2cc5185dbaf95c5db72b9c8 /src/gui/gui.h
parentff5d92c8973b89e420cb639bb19f32916187ccaf (diff)
downloadmana-client-004963a615516d3534a68da90d44443dc765d9d4.tar.gz
mana-client-004963a615516d3534a68da90d44443dc765d9d4.tar.bz2
mana-client-004963a615516d3534a68da90d44443dc765d9d4.tar.xz
mana-client-004963a615516d3534a68da90d44443dc765d9d4.zip
Allowed continous movement when holding down left mouse button
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 02ea7caa..6264a116 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -76,6 +76,18 @@ class Gui : public gcn::Gui, public gcn::MouseListener, ConfigListener
mousePress(int mx, int my, int button);
/**
+ * Handles mouse releases on map.
+ */
+ void
+ mouseRelease(int mx, int my, int button);
+
+ /**
+ * Handles mouse motion on map.
+ */
+ void
+ mouseMotion(int mx, int my);
+
+ /**
* Return game font
*/
gcn::ImageFont*
@@ -99,6 +111,8 @@ class Gui : public gcn::Gui, public gcn::MouseListener, ConfigListener
gcn::ImageFont *mGuiFont; /**< The global GUI font */
Image *mMouseCursor; /**< Mouse cursor image */
bool mCustomCursor; /**< Show custom cursor */
+ bool mMouseWalk; /**< Move to the mouse cursor */
+ int mMouseX, mMouseY; /**< Mouse coordinates */
};
extern Gui *gui; /**< The GUI system */