summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index 16d0e4e34..50a79ee15 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -300,6 +300,12 @@ class Viewport final : public WindowContainer,
void _drawPath(Graphics *const graphics, const Path &path,
const Color &color = Color(255, 0, 0)) const;
+ bool leftMouseAction(MouseEvent &event);
+
+ bool openContextMenu(MouseEvent &event);
+
+ void walkByMouse(MouseEvent &event);
+
/**
* Make the player go to the mouse position.
*/
@@ -315,6 +321,8 @@ class Viewport final : public WindowContainer,
int mScrollCenterOffsetX;
int mScrollCenterOffsetY;
bool mMouseDirectionMove;
+ bool mLongMouseClick;
+ bool mMouseClicked;
int mMouseX; /**< Current mouse position in pixels. */
int mMouseY; /**< Current mouse position in pixels. */
int mPixelViewX; /**< Current viewpoint in pixels. */