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/gui.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/gui.h')
-rw-r--r-- | src/gui/gui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 4536ee553..f7c913752 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -302,6 +302,11 @@ class Gui final */ void removeGlobalKeyListener(KeyListener *const keyListener); + bool isLongPress() + { return getMousePressLength() > 250; } + + int getMousePressLength(); + protected: void handleMouseMoved(const MouseInput &mouseInput); |