diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-09 13:23:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-09 14:44:09 +0300 |
commit | c66e0863ecc24145c57261987eb8e25776c303ce (patch) | |
tree | 17bb98deebd60463cb01bad865a92b766272efed /src/gui/viewport.h | |
parent | 4c90395b1b42d436545b33a855ef431f5ede6a9b (diff) | |
download | manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.tar.gz manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.tar.bz2 manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.tar.xz manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.zip |
Add support for long mouse press event.
Enabled by default on Android.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r-- | src/gui/viewport.h | 8 |
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. */ |